diff options
author | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2014-12-17 19:19:25 -0200 |
---|---|---|
committer | Alexandre Pretto Nunes <anunes@thoughtworks.com> | 2015-01-06 16:27:26 -0200 |
commit | 7ab9f9423004adf1df9cc1be1b2a5ae7eade4a95 (patch) | |
tree | bb8aeadbc6f9ce4798ce1eaabc40d66972ba1f5b /web-ui/app/js/dispatchers | |
parent | 0ff59644d8e804bcab928d184b31a5e6cdc2f6ed (diff) |
Separate auto-refresh for mails and tags, and start moving away from having the left_pane_dispatcher as a middleman
Diffstat (limited to 'web-ui/app/js/dispatchers')
-rw-r--r-- | web-ui/app/js/dispatchers/left_pane_dispatcher.js | 9 | ||||
-rw-r--r-- | web-ui/app/js/dispatchers/right_pane_dispatcher.js | 1 |
2 files changed, 3 insertions, 7 deletions
diff --git a/web-ui/app/js/dispatchers/left_pane_dispatcher.js b/web-ui/app/js/dispatchers/left_pane_dispatcher.js index 21898dca..0037a88f 100644 --- a/web-ui/app/js/dispatchers/left_pane_dispatcher.js +++ b/web-ui/app/js/dispatchers/left_pane_dispatcher.js @@ -47,19 +47,14 @@ define( this.trigger(document, events.router.pushState, data); } initialized = true; - - if (data.skipMailListRefresh) { - return; - } - - this.trigger(document, events.ui.mails.fetchByTag, data); }; this.after('initialize', function () { - this.on(this.$node, events.tags.received, this.loadTags); + //this.on(this.$node, events.tags.received, this.loadTags); this.on(document, events.dispatchers.tags.refreshTagList, this.refreshTagList); this.on(document, events.ui.tags.loaded, this.selectTag); this.on(document, events.ui.tag.selected, this.pushUrlState); + this.on(document, events.ui.tag.select, this.pushUrlState); this.trigger(document, events.tags.want, { caller: this.$node }); }); } diff --git a/web-ui/app/js/dispatchers/right_pane_dispatcher.js b/web-ui/app/js/dispatchers/right_pane_dispatcher.js index 092fca81..77d578e0 100644 --- a/web-ui/app/js/dispatchers/right_pane_dispatcher.js +++ b/web-ui/app/js/dispatchers/right_pane_dispatcher.js @@ -101,6 +101,7 @@ define( this.on(document, events.dispatchers.rightPane.openNoMessageSelected, this.openNoMessageSelectedPane); this.on(document, events.dispatchers.rightPane.selectTag, this.selectTag); this.on(document, events.ui.tag.selected, this.saveTag); + this.on(document, events.ui.tag.select, this.saveTag); this.on(document, events.dispatchers.rightPane.openNoMessageSelectedWithoutPushState, this.initializeNoMessageSelectedPane); this.initializeNoMessageSelectedPane(); }); |