summaryrefslogtreecommitdiff
path: root/web-ui/app/js/dispatchers/left_pane_dispatcher.js
diff options
context:
space:
mode:
authorDuda Dornelles <dudassdornelles@gmail.com>2015-01-07 11:36:43 -0200
committerDuda Dornelles <dudassdornelles@gmail.com>2015-01-07 11:36:43 -0200
commit2bcc7203073d71814483b0d6ba797c187048fc1e (patch)
tree082eaf4f95433a229a99d22969a56bd90211a4fa /web-ui/app/js/dispatchers/left_pane_dispatcher.js
parentb4bd74e59313cb40638d954a2369a0c9650d75f7 (diff)
parentb0720edaa0d51ee9e807495fa536d890d332c50d (diff)
Merge pull request #223 from pixelated-project/refactoring-events
Refactoring events on web-ui left-pane
Diffstat (limited to 'web-ui/app/js/dispatchers/left_pane_dispatcher.js')
-rw-r--r--web-ui/app/js/dispatchers/left_pane_dispatcher.js9
1 files changed, 2 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 });
});
}