diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-13 23:33:52 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-13 23:33:52 +0200 |
commit | 80369c059674da764e1b11b8a3f15faedc019a05 (patch) | |
tree | b261f7a603a1b9ecfdd5cb87c8baaaa7df5f2e59 /js/news.js | |
parent | cc103d1a1a37526a0ccc494667ac5a0e3ae5c19c (diff) |
fixed bug that prevented the setting of mark as unread when you clicked directly on the checkbox
Diffstat (limited to 'js/news.js')
-rw-r--r-- | js/news.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/js/news.js b/js/news.js index 4edb21486..774a386de 100644 --- a/js/news.js +++ b/js/news.js @@ -456,7 +456,7 @@ function bindItemEventListeners(){ var itemId = $item.data('id'); var handler = new News.ItemStatusHandler(itemId); handler.setRead(true); - }) + }); // mark or unmark as important $('#feed_items li.star').click(function(){ @@ -464,7 +464,7 @@ function bindItemEventListeners(){ var itemId = $item.data('id'); var handler = new News.ItemStatusHandler(itemId); handler.toggleImportant(); - }) + }); // toggle logic for the keep unread handler $('#feed_items .keep_unread').click(function(){ @@ -472,7 +472,13 @@ function bindItemEventListeners(){ var itemId = $item.data('id'); var handler = new News.ItemStatusHandler(itemId); handler.toggleKeepUnread(); - }) + }); + $('#feed_items .keep_unread input[type=checkbox]').click(function(){ + var $item = $(this).parent().parent().parent().parent('.feed_item'); + var itemId = $item.data('id'); + var handler = new News.ItemStatusHandler(itemId); + handler.toggleKeepUnread(); + }); // bind the mark all as read button $('#mark_all_as_read').click(function(){ |