From f318868696550075372f422d1dfb20ddaa78aea0 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 7 Apr 2014 11:46:13 +0600 Subject: [PATCH] SONAR-5167 Bug fixes --- .../coffee/coding-rules/views/coding-rules-list-view.coffee | 6 ++++++ .../main/coffee/coding-rules/views/filter-bar-view.coffee | 1 + sonar-server/src/main/js/issues/extra.js | 1 + sonar-server/src/main/js/navigator/filters/filter-bar.js | 1 + 4 files changed, 9 insertions(+) diff --git a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-list-view.coffee b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-list-view.coffee index c91beba027e..060daec34bd 100644 --- a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-list-view.coffee +++ b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-list-view.coffee @@ -30,6 +30,12 @@ define [ key 'down', 'list', => @selectNext() + close: -> + super + key.unbind 'up', 'list' + key.unbind 'down', 'list' + + selectIssue: (el, open) -> @$('.active').removeClass 'active' el.addClass 'active' diff --git a/sonar-server/src/main/coffee/coding-rules/views/filter-bar-view.coffee b/sonar-server/src/main/coffee/coding-rules/views/filter-bar-view.coffee index 6a719be85aa..f1a4f157098 100644 --- a/sonar-server/src/main/coffee/coding-rules/views/filter-bar-view.coffee +++ b/sonar-server/src/main/coffee/coding-rules/views/filter-bar-view.coffee @@ -61,6 +61,7 @@ define [ search: -> + @$('.navigator-filter-submit').blur() @options.app.state.set query: this.options.app.getQuery(), search: true diff --git a/sonar-server/src/main/js/issues/extra.js b/sonar-server/src/main/js/issues/extra.js index 0cf04865b0e..51dae17c33b 100644 --- a/sonar-server/src/main/js/issues/extra.js +++ b/sonar-server/src/main/js/issues/extra.js @@ -478,6 +478,7 @@ define( search: function () { + this.$('.navigator-filter-submit').blur(); this.options.app.state.set({ query: this.options.app.getQuery(), search: true diff --git a/sonar-server/src/main/js/navigator/filters/filter-bar.js b/sonar-server/src/main/js/navigator/filters/filter-bar.js index 300646c5650..1f3ce749638 100644 --- a/sonar-server/src/main/js/navigator/filters/filter-bar.js +++ b/sonar-server/src/main/js/navigator/filters/filter-bar.js @@ -93,6 +93,7 @@ define( if (this.selected > 0) { this.selected--; filters.eq(this.selected).click(); + this.$('.navigator-filter-submit').blur(); } }, -- 2.39.5