diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2012-10-26 20:29:55 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2012-10-26 20:30:19 +0200 |
commit | 7683d551046b6b2a96810714ec06448bd359d6a1 (patch) | |
tree | dd5da3b1ddd36ecd4467d85c47b216c6c1110096 /js | |
parent | f77e9f2408265f07c694e3ede9fe8e7954f5ee9e (diff) |
remove highlight of currently selected item
Diffstat (limited to 'js')
-rw-r--r-- | js/items.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/items.js b/js/items.js index 46abf6bbb..cee18759e 100644 --- a/js/items.js +++ b/js/items.js @@ -29,7 +29,6 @@ var News = News || {}; var self = this; this._$articleList = $(cssSelector); this._$articleList.scrollTop(0); - this._$articleList.children('ul').children('.feed_item:eq(0)').addClass('viewed'); this._itemCache = new ItemCache(); this._loadRequest = null; @@ -59,7 +58,7 @@ var News = News || {}; }, self._markReadTimeoutMiliSecs); } }); - self._markCurrentlyViewed(); + //self._markCurrentlyViewed(); } }); @@ -206,7 +205,7 @@ var News = News || {}; $elem = $('.feed_item[data-id=' + id + ']'); this._$articleList.scrollTop( $elem.offset().top - this._$articleList.offset().top + this._$articleList.scrollTop()); - this._markCurrentlyViewed(); + //this._markCurrentlyViewed(); }; /** @@ -399,7 +398,7 @@ var News = News || {}; for(var i=0; i<itemIds.length; i++){ var item = this._items[itemIds[i]]; if(i === 0){ - item.setViewed(true); + //item.setViewed(true); } // show items if(News.Objects.Menu.isShowAll() || |