diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-06 23:45:06 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-06 23:45:06 +0200 |
commit | 0e42e6d8ce1a056b4426148651b741f345968be2 (patch) | |
tree | 982b511677d05142726d92410e0d67ec1d25574b /src/web/js/actions/MenuActions.js | |
parent | replace g.user by current_user (diff) | |
download | newspipe-0e42e6d8ce1a056b4426148651b741f345968be2.tar.gz newspipe-0e42e6d8ce1a056b4426148651b741f345968be2.tar.bz2 newspipe-0e42e6d8ce1a056b4426148651b741f345968be2.zip |
major problems fixed.
Diffstat (limited to 'src/web/js/actions/MenuActions.js')
-rw-r--r-- | src/web/js/actions/MenuActions.js | 5 |
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) { |