1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 01:55:55 +00:00

remove ACTFEEDID container, keep information in a cookie instead (getActiveFeedId/setActiveFeedId API)

This commit is contained in:
Andrew Dolgov
2005-09-08 06:29:45 +01:00
parent 25cb57366a
commit 867413478a
5 changed files with 32 additions and 38 deletions

View File

@@ -1,4 +1,3 @@
var active_feed_id = false;
var active_post_id = false;
var total_unread = 0;
@@ -73,7 +72,7 @@ function view(id, feed_id) {
}
active_post_id = id;
active_feed_id = feed_id;
setActiveFeedId(feed_id);
var content = parent.document.getElementById("content-frame");
@@ -134,13 +133,13 @@ function moveToPost(mode) {
if (mode == "next") {
if (next_id != undefined) {
view(next_id, active_feed_id);
view(next_id, getActiveFeedId());
}
}
if (mode == "prev") {
if ( prev_id != undefined) {
view(prev_id, active_feed_id);
view(prev_id, getActiveFeedId());
}
}
}