summaryrefslogtreecommitdiffstats
path: root/js/menu.js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-31 18:14:34 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-01 00:31:39 +0200
commit401371d2137f96100324ff9ab4ac9a8388df02d5 (patch)
tree2e54350e205a5acd424c62d66dbca2a8c53600e8 /js/menu.js
parent3651fe290c1ac3596280a18b622585cfee3866b0 (diff)
hide read items on triggerHeadRead, but dont hide them if theyre selected or the folders of felected feeds
Diffstat (limited to 'js/menu.js')
-rw-r--r--js/menu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/menu.js b/js/menu.js
index 56d5e9fbc..ba66c0f76 100644
--- a/js/menu.js
+++ b/js/menu.js
@@ -227,7 +227,7 @@ var News = News || {};
$(this._$root).find('.all_read').each(function(){
// dont hide folders with the currently selected feed
// or the currently selected feed
- if(!$(this).hasClass('active') && $(this).find('.active').length !== 0){
+ if(!$(this).hasClass('active') && $(this).find('.active').length === 0){
$(this).addClass('hidden');
}
});
@@ -287,6 +287,7 @@ var News = News || {};
self._updateUnreadCountAll();
}, 1000);
+ this.triggerHideRead();
};
/**
@@ -400,7 +401,6 @@ var News = News || {};
return false;
});
- this.triggerHideRead();
};
/**