From 867413478a0f18754c87a9998277e6d6d58abe08 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Sep 2005 06:29:45 +0100 Subject: remove ACTFEEDID container, keep information in a cookie instead (getActiveFeedId/setActiveFeedId API) --- viewfeed.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'viewfeed.js') diff --git a/viewfeed.js b/viewfeed.js index b45bce98e..35bef67b7 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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()); } } } -- cgit v1.2.3