From d4cc5ad93f1043e9f992be95dc5b1b1e056ea7c7 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 18 Mar 2014 16:22:27 +0600 Subject: SONAR-5007 Display quality profiles on which a rule is activated and related actions --- sonar-server/src/main/webapp/javascripts/coding-rules/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sonar-server/src/main/webapp/javascripts/coding-rules/app.js') diff --git a/sonar-server/src/main/webapp/javascripts/coding-rules/app.js b/sonar-server/src/main/webapp/javascripts/coding-rules/app.js index 4ca54b9f583..37d534fbd60 100644 --- a/sonar-server/src/main/webapp/javascripts/coding-rules/app.js +++ b/sonar-server/src/main/webapp/javascripts/coding-rules/app.js @@ -22,7 +22,7 @@ } }); - requirejs(['backbone', 'backbone.marionette', 'coding-rules/layout', 'coding-rules/router', 'coding-rules/views/header-view', 'coding-rules/views/actions-view', 'coding-rules/views/filter-bar-view', 'coding-rules/views/coding-rules-list-view', 'coding-rules/views/coding-rules-bulk-change-view', 'navigator/filters/base-filters', 'navigator/filters/choice-filters', 'navigator/filters/string-filters', 'navigator/filters/date-filter-view', 'coding-rules/views/filters/quality-profile-filter-view', 'coding-rules/views/filters/inheritance-filter-view', 'coding-rules/mockjax'], function(Backbone, Marionette, CodingRulesLayout, CodingRulesRouter, CodingRulesHeaderView, CodingRulesActionsView, CodingRulesFilterBarView, CodingRulesListView, CodingRulesBulkChangeView, BaseFilters, ChoiceFilters, StringFilterView, DateFilterView, QualityProfileFilterView, InheritanceFilterView) { + requirejs(['backbone', 'backbone.marionette', 'coding-rules/layout', 'coding-rules/router', 'coding-rules/views/header-view', 'coding-rules/views/actions-view', 'coding-rules/views/filter-bar-view', 'coding-rules/views/coding-rules-list-view', 'coding-rules/views/coding-rules-bulk-change-view', 'coding-rules/views/coding-rules-quality-profile-activation-view', 'navigator/filters/base-filters', 'navigator/filters/choice-filters', 'navigator/filters/string-filters', 'navigator/filters/date-filter-view', 'coding-rules/views/filters/quality-profile-filter-view', 'coding-rules/views/filters/inheritance-filter-view', 'coding-rules/mockjax'], function(Backbone, Marionette, CodingRulesLayout, CodingRulesRouter, CodingRulesHeaderView, CodingRulesActionsView, CodingRulesFilterBarView, CodingRulesListView, CodingRulesBulkChangeView, CodingRulesQualityProfileActivationView, BaseFilters, ChoiceFilters, StringFilterView, DateFilterView, QualityProfileFilterView, InheritanceFilterView) { var App, appXHR; jQuery.ajaxSetup({ error: function(jqXHR) { @@ -152,6 +152,11 @@ app: this }); }); + App.addInitializer(function() { + return this.codingRulesQualityProfileActivationView = new CodingRulesQualityProfileActivationView({ + app: this + }); + }); App.addInitializer(function() { this.filters = new BaseFilters.Filters; this.filters.add(new BaseFilters.Filter({ -- cgit v1.2.3