summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-13 23:33:52 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-13 23:33:52 +0200
commit80369c059674da764e1b11b8a3f15faedc019a05 (patch)
treeb261f7a603a1b9ecfdd5cb87c8baaaa7df5f2e59 /js
parentcc103d1a1a37526a0ccc494667ac5a0e3ae5c19c (diff)
fixed bug that prevented the setting of mark as unread when you clicked directly on the checkbox
Diffstat (limited to 'js')
-rw-r--r--js/news.js12
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(){