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 | |
parent | cc103d1a1a37526a0ccc494667ac5a0e3ae5c19c (diff) |
fixed bug that prevented the setting of mark as unread when you clicked directly on the checkbox
-rw-r--r-- | appinfo/version | 2 | ||||
-rw-r--r-- | css/news.css | 5 | ||||
-rw-r--r-- | js/news.js | 12 |
3 files changed, 13 insertions, 6 deletions
diff --git a/appinfo/version b/appinfo/version index 295ec490e..c7930257d 100644 --- a/appinfo/version +++ b/appinfo/version @@ -1 +1 @@ -6.8.2
\ No newline at end of file +7
\ No newline at end of file diff --git a/css/news.css b/css/news.css index 1945c160d..c2ff88f01 100644 --- a/css/news.css +++ b/css/news.css @@ -345,13 +345,14 @@ ul.controls li { * Secondary feed items which are only shown on hover */ .feed_item .secondary_item_utils { + display: none; float: right; color: #aaa; } - /* + .feed_item:hover .secondary_item_utils { display: block; - }*/ + } .feed_item:hover .secondary_item_utils li.keep_unread { cursor: pointer; 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(){ |