aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/actions/MenuActions.js
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-22 14:30:54 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-22 14:30:54 +0100
commit3d199ce8955c035a5a1bc4569058e2f84ef9cfe0 (patch)
treee8bb7f02b6b4bae283807577123b851e66eb4bc4 /src/web/js/actions/MenuActions.js
parentfix... (diff)
downloadnewspipe-3d199ce8955c035a5a1bc4569058e2f84ef9cfe0.tar.gz
newspipe-3d199ce8955c035a5a1bc4569058e2f84ef9cfe0.tar.bz2
newspipe-3d199ce8955c035a5a1bc4569058e2f84ef9cfe0.zip
fixes
Diffstat (limited to 'src/web/js/actions/MenuActions.js')
-rw-r--r--src/web/js/actions/MenuActions.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/js/actions/MenuActions.js b/src/web/js/actions/MenuActions.js
index b9154581..824610d8 100644
--- a/src/web/js/actions/MenuActions.js
+++ b/src/web/js/actions/MenuActions.js
@@ -5,7 +5,7 @@ var jquery = require('jquery');
var MenuActions = {
// PARENT FILTERS
- reload: function() {
+ reload: function(setFilterFunc, id) {
jquery.getJSON('/menu', function(payload) {
JarrDispatcher.dispatch({
type: ActionTypes.RELOAD_MENU,
@@ -18,6 +18,9 @@ var MenuActions = {
crawling_method: payload.crawling_method,
all_unread_count: payload.all_unread_count,
});
+ if(setFilterFunc && id) {
+ setFilterFunc(id);
+ }
});
},
setFilter: function(filter) {
bgstack15