diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-01 01:45:00 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-01 01:45:00 +0200 |
commit | 42f4244d44b35d172715dc7e70b6f3bd55d08005 (patch) | |
tree | 358f4f366aeb2a6c3df43ceff9809b37806c1dc4 /js/menu.js | |
parent | 4c39312cb3ffba28b103e49ac37f293fc5eea78b (diff) |
mark all read works now
Diffstat (limited to 'js/menu.js')
-rw-r--r-- | js/menu.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/menu.js b/js/menu.js index cd41fa63c..cb9f7886a 100644 --- a/js/menu.js +++ b/js/menu.js @@ -513,7 +513,7 @@ var News = News || {}; return false; }); - $listItem.children('.feeds_markread').click(function(){ + $listItem.children('.buttons').children('.feeds_markread').click(function(){ self._markRead(MenuNodeType.Subscriptions, 0); }); }; @@ -593,9 +593,12 @@ var News = News || {}; break; case MenuNodeType.Subscriptions: - this._root.children('li').each(function(){ + this._$root.children('li').each(function(){ var childData = self._getIdAndTypeFromNode($(this)); - self._markRead(childData.type, childData.id); + if(childData.type === MenuNodeType.Folder || + childData.type === MenuNodeType.Feed){ + self._markRead(childData.type, childData.id); + } }); break; |