diff options
-rw-r--r-- | js/news.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/news.js b/js/news.js index 811697e08..373562e5e 100644 --- a/js/news.js +++ b/js/news.js @@ -554,6 +554,14 @@ function bindItemEventListeners(){ handler.setRead(true); }); + // single hover on item should mark it as read too + $('#feed_items .body').click(function(){ + var $item = $(this).parent('.feed_item'); + 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(){ var $item = $(this).parent().parent().parent('.feed_item'); |