summaryrefslogtreecommitdiff
path: root/web-ui/app/js/search
diff options
context:
space:
mode:
authorAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-17 19:19:25 -0200
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2015-01-06 16:27:26 -0200
commit7ab9f9423004adf1df9cc1be1b2a5ae7eade4a95 (patch)
treebb8aeadbc6f9ce4798ce1eaabc40d66972ba1f5b /web-ui/app/js/search
parent0ff59644d8e804bcab928d184b31a5e6cdc2f6ed (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/search')
-rw-r--r--web-ui/app/js/search/search_trigger.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/web-ui/app/js/search/search_trigger.js b/web-ui/app/js/search/search_trigger.js
index 8f5bbb86..9f2dd45e 100644
--- a/web-ui/app/js/search/search_trigger.js
+++ b/web-ui/app/js/search/search_trigger.js
@@ -46,16 +46,14 @@ define(
var value = input.val();
input.blur();
if(!_.isEmpty(value)){
- this.trigger(document, events.ui.tag.select, { tag: 'all', skipMailListRefresh: true });
this.trigger(document, events.search.perform, { query: value });
} else {
- this.trigger(document, events.ui.tag.select, { tag: 'all'});
this.trigger(document, events.search.empty);
}
};
- this.clearInput = function(event, data) {
- if (!data.skipMailListRefresh) { this.select('input').val(''); }
+ this.clearInput = function() {
+ this.select('input').val('');
};
this.showOnlySearchTerms = function(event){
@@ -77,6 +75,7 @@ define(
this.on(this.select('input'), 'focus', this.showOnlySearchTerms);
this.on(this.select('input'), 'blur', this.showSearchTermsAndPlaceHolder);
this.on(document, events.ui.tag.selected, this.clearInput);
+ this.on(document, events.ui.tag.select, this.clearInput);
});
}
}