diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-09-15 12:31:53 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-09-15 12:31:53 +0200 |
commit | 2285e07fcae055d75b0122b9bda60685334376e2 (patch) | |
tree | 1caeccb09271da9d94ba3db1ecb868775ac8aa55 /server/sonar-web/src/main/js | |
parent | 1d777d3f5298c7e71f6a6a6da106698029c49bd6 (diff) | |
download | sonarqube-2285e07fcae055d75b0122b9bda60685334376e2.tar.gz sonarqube-2285e07fcae055d75b0122b9bda60685334376e2.zip |
SONAR-6208 Sync rule activation between list and details
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js index fc7662e5073..b017aea8bcc 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js @@ -66,7 +66,14 @@ define([ collection: this.collection, app: this.options.app }); - activationView.on('profileActivated', function () { + activationView.on('profileActivated', function (severity, params, profile) { + var activation = { + severity: severity, + inherit: 'NONE', + params: params, + qProfile: profile + }; + that.model.set({ activation: activation }); that.options.app.controller.showDetails(that.model); }); activationView.render(); |