summaryrefslogtreecommitdiff
path: root/js/feedlist.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-28 13:06:54 +0400
committerAndrew Dolgov <[email protected]>2013-02-28 13:06:54 +0400
commit1b04a298efd0ea33086eeeb3fc7de6281c9881d1 (patch)
tree5a2f0da9c55824abbb9ae2cc04f101e1b0d4eee7 /js/feedlist.js
parent271edfa6f9ac8ad387f98693a6c09496ddf72f1f (diff)
store active feed id in url hash and restore on reload
Diffstat (limited to 'js/feedlist.js')
-rw-r--r--js/feedlist.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/feedlist.js b/js/feedlist.js
index b2aadab62..3d4f1f4c9 100644
--- a/js/feedlist.js
+++ b/js/feedlist.js
@@ -204,11 +204,11 @@ function feedlist_init() {
document.onkeydown = hotkey_handler;
setTimeout("hotkey_prefix_timeout()", 5*1000);
- if (!getActiveFeedId())
- viewfeed(-3);
-
- console.log("T:" +
- getInitParam("cdm_auto_catchup") + " " + getFeedUnread(-3));
+ if (!getActiveFeedId()) {
+ viewfeed(-3);
+ } else {
+ viewfeed(getActiveFeedId(), '', activeFeedIsCat());
+ }
hideOrShowFeeds(getInitParam("hide_read_feeds") == 1);