diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-16 19:19:43 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-16 19:19:43 +0200 |
commit | d8f94937ebc3fdfef7346033db26a77eebe5b93b (patch) | |
tree | 22b14e05c7c32fcafb0d0205ed5da486b81e6b90 /js | |
parent | 0241ac70ab58f00ffadfc3b4c8276f8cc8afd2ac (diff) |
fixed marking feeds as read
Diffstat (limited to 'js')
-rw-r--r-- | js/news.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/news.js b/js/news.js index dada15fb2..6dbfd14da 100644 --- a/js/news.js +++ b/js/news.js @@ -372,7 +372,7 @@ News={ // this array is used to store ids to prevent sending too // many posts when scrolling. the structure is: feed_id: boolean processing:{}, - activeFeedId: parseInt($('#rightcontent').data('id')), + activeFeedId: -1000, }, /** @@ -692,8 +692,9 @@ function bindItemEventListeners(){ }); // bind the mark all as read button + $('#mark_all_as_read').unbind(); $('#mark_all_as_read').click(function(){ - var feedId = $('.rightcontent').data('id'); + var feedId = News.Feed.activeFeedId; News.Feed.setAllItemsRead(feedId); }); @@ -701,6 +702,8 @@ function bindItemEventListeners(){ $(document).ready(function(){ + News.Feed.activeFeedId = parseInt($('#rightcontent').data('id')); + $('#addfeed_dialog_firstrun').hide(); $('#addfeed').click(function() { |