summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-06 05:30:11 +0100
committerAndrew Dolgov <[email protected]>2005-09-06 05:30:11 +0100
commit47179952ac504e410fec802fecc550060439366b (patch)
tree66f04b2c4be5e05624551057e43ebe9bc2efc717 /tt-rss.js
parent5a4ce2e74736f17393fadebff03e2a2eda5a5387 (diff)
store last opened feed in cookie, cleanup tt-rss.js a little bit
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 34ab7102c..9b9decf81 100644
--- 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, "");
+ }
}