]> git.wh0rd.org - tt-rss.git/commitdiff
store last opened feed in cookie, cleanup tt-rss.js a little bit
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Sep 2005 04:30:11 +0000 (05:30 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Sep 2005 04:30:11 +0000 (05:30 +0100)
tt-rss.js

index 34ab7102c0c3ae5e330b142899dd8a8233cfaa0c..9b9decf81bc64851c66c4eb52f42234769a49126 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -14,8 +14,6 @@ var active_post_id = false;
 var active_feed_id = false;
 var active_offset = false;
 
-var total_feed_entries = false;
-
 var search_query = "";
 
 /*@cc_on @*/
@@ -244,15 +242,6 @@ function viewfeed(feed, skip, subop) {
                limit = "All";
        }
 
-       if (skip < 0 || skip > total_feed_entries) {
-               return;
-       }
-
-       if (!xmlhttp_ready(xmlhttp)) {
-               printLockingError();
-               return
-       }
-
        if (active_feed_id != feed || skip != active_offset) {
                active_post_id = false;
        }
@@ -426,6 +415,10 @@ function init() {
                var viewbox = document.getElementById("viewbox");
                viewbox.value = getCookie("ttrss_vf_vmode");
        }
+
+       if (getCookie("ttrss_vf_actfeed")) {
+               viewfeed(getCookie("ttrss_vf_actfeed"), 0, "");
+       }
                
 }