store last opened feed in cookie, cleanup tt-rss.js a little bit

This commit is contained in:
Andrew Dolgov 2005-09-06 05:30:11 +01:00
parent 5a4ce2e747
commit 47179952ac
1 changed files with 4 additions and 11 deletions

View File

@ -14,8 +14,6 @@ var active_post_id = false;
var active_feed_id = false; var active_feed_id = false;
var active_offset = false; var active_offset = false;
var total_feed_entries = false;
var search_query = ""; var search_query = "";
/*@cc_on @*/ /*@cc_on @*/
@ -244,15 +242,6 @@ function viewfeed(feed, skip, subop) {
limit = "All"; limit = "All";
} }
if (skip < 0 || skip > total_feed_entries) {
return;
}
if (!xmlhttp_ready(xmlhttp)) {
printLockingError();
return
}
if (active_feed_id != feed || skip != active_offset) { if (active_feed_id != feed || skip != active_offset) {
active_post_id = false; active_post_id = false;
} }
@ -427,6 +416,10 @@ function init() {
viewbox.value = getCookie("ttrss_vf_vmode"); viewbox.value = getCookie("ttrss_vf_vmode");
} }
if (getCookie("ttrss_vf_actfeed")) {
viewfeed(getCookie("ttrss_vf_actfeed"), 0, "");
}
} }