diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-14 23:09:20 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-14 23:09:20 +0200 |
commit | 9b06280402269bd3ee92038160f0f269311558a0 (patch) | |
tree | fa9826f9bd44991d38457b035ffa8be214a41713 | |
parent | eaeffc0a577dd5d439761a3ab20361710d62da0c (diff) |
mark article as read when you click on it
-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'); |