aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-11-17 09:07:53 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-11-17 09:07:53 +0100
commit86945db962de1082a537a2ce97bcc66263c30586 (patch)
treee09e10a841408ae663a7c7f3f007c50835b568d6 /server/sonar-web
parentb9ffe1b974f2baa109f73f19e8aefd52ff39d88b (diff)
downloadsonarqube-86945db962de1082a537a2ce97bcc66263c30586.tar.gz
sonarqube-86945db962de1082a537a2ce97bcc66263c30586.zip
SONAR-6909 Provide a visual feedback when selecting an item in the global search results
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/main/nav/global/search-view.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/main/nav/global/search-view.js b/server/sonar-web/src/main/js/main/nav/global/search-view.js
index 90cd6c065c1..deffefb3942 100644
--- a/server/sonar-web/src/main/js/main/nav/global/search-view.js
+++ b/server/sonar-web/src/main/js/main/nav/global/search-view.js
@@ -93,6 +93,7 @@ export default Marionette.LayoutView.extend({
}
if (e.keyCode === 13) {
this.resultsView.submitCurrent();
+ this.destroy();
return false;
}
if (e.keyCode === 27) {