From 2285e07fcae055d75b0122b9bda60685334376e2 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 15 Sep 2015 12:31:53 +0200 Subject: [PATCH] SONAR-6208 Sync rule activation between list and details --- .../main/js/apps/coding-rules/rule/rule-profiles-view.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); -- 2.39.5