summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/page/events.js3
-rw-r--r--web-ui/app/js/search/results_highlighter.js1
-rw-r--r--web-ui/app/js/search/search_trigger.js1
3 files changed, 4 insertions, 1 deletions
diff --git a/web-ui/app/js/page/events.js b/web-ui/app/js/page/events.js
index f7e626f8..f1f426f7 100644
--- a/web-ui/app/js/page/events.js
+++ b/web-ui/app/js/page/events.js
@@ -95,7 +95,8 @@ define(function () {
perform: 'search:perform',
results: 'search:results',
empty: 'search:empty',
- highlightResults: 'search:highlightResults'
+ highlightResults: 'search:highlightResults',
+ resetHighlight: 'search:resetHighlight'
},
mail: {
here: 'mail:here',
diff --git a/web-ui/app/js/search/results_highlighter.js b/web-ui/app/js/search/results_highlighter.js
index 9109bca4..2c7d1cc7 100644
--- a/web-ui/app/js/search/results_highlighter.js
+++ b/web-ui/app/js/search/results_highlighter.js
@@ -60,6 +60,7 @@ define(
this.after('initialize', function () {
this.on(document, events.search.perform, this.getKeywordsSearch);
this.on(document, events.ui.tag.select, this.clearHighlights);
+ this.on(document, events.search.resetHighlight, this.clearHighlights);
this.on(document, events.search.highlightResults, this.highlightResults);
});
diff --git a/web-ui/app/js/search/search_trigger.js b/web-ui/app/js/search/search_trigger.js
index b43cef0f..4b9cb1dc 100644
--- a/web-ui/app/js/search/search_trigger.js
+++ b/web-ui/app/js/search/search_trigger.js
@@ -39,6 +39,7 @@ define(
};
this.search = function(ev, data) {
+ this.trigger(document, events.search.resetHighlight);
ev.preventDefault();
var input = this.select('input');
var value = input.val();