summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-10 20:44:45 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-10 20:44:45 +0200
commit748afb98f2a0cd485df6346c97a179d45d178209 (patch)
tree621723a98adb554a795fafe5a52f89fa275136ec /js
parent837438ab0d9a2f65983514778510550b7ecc83ec (diff)
moved the marking of feeds into the news.js and call it on mouseenter, always expand the description of feeds, improved style of the news items
Diffstat (limited to 'js')
-rw-r--r--js/news.js6
-rw-r--r--js/settings.js1
2 files changed, 7 insertions, 0 deletions
diff --git a/js/news.js b/js/news.js
index 2d38ec930..5420965eb 100644
--- a/js/news.js
+++ b/js/news.js
@@ -361,6 +361,12 @@ $(document).ready(function(){
var updateInterval = 200000; //how often the feeds should update (in msec)
setInterval('News.Feed.updateAll()', updateInterval);
+ $('.title_unread').live('mouseenter', function(){
+ var itemId = $(this).data('id');
+ var feedId = $(this).data('feedid');
+ News.Feed.markItem(itemId, feedId);
+ });
+
});
$(document).click(function(event) {
diff --git a/js/settings.js b/js/settings.js
index 7bc1c80db..c5a7e43ce 100644
--- a/js/settings.js
+++ b/js/settings.js
@@ -75,3 +75,4 @@ $('#file_upload_start').change(function() {
$('#importbtn').click(function() {
News.Settings.import(this);
});
+