aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/javascripts/coding-rules/app.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-03-18 16:22:27 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-03-18 16:22:39 +0600
commitd4cc5ad93f1043e9f992be95dc5b1b1e056ea7c7 (patch)
tree17a17a904d405f9b7c042dc1fa9d453122a46910 /sonar-server/src/main/webapp/javascripts/coding-rules/app.js
parent7c6ffbab1b4038b2a5e5c01acb5b3bc96c7db9a9 (diff)
downloadsonarqube-d4cc5ad93f1043e9f992be95dc5b1b1e056ea7c7.tar.gz
sonarqube-d4cc5ad93f1043e9f992be95dc5b1b1e056ea7c7.zip
SONAR-5007 Display quality profiles on which a rule is activated and related actions
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts/coding-rules/app.js')
-rw-r--r--sonar-server/src/main/webapp/javascripts/coding-rules/app.js7
1 files changed, 6 insertions, 1 deletions
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) {
@@ -153,6 +153,11 @@
});
});
App.addInitializer(function() {
+ return this.codingRulesQualityProfileActivationView = new CodingRulesQualityProfileActivationView({
+ app: this
+ });
+ });
+ App.addInitializer(function() {
this.filters = new BaseFilters.Filters;
this.filters.add(new BaseFilters.Filter({
name: t('coding_rules.filters.name'),