aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/metrics
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-06-09 12:13:56 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-06-09 16:20:22 +0200
commite9ac473ec7dc0433cadf3f64f5d7980e38e0b93c (patch)
treef641493172b0f5a82b6207e1bb3c058f6f2d4914 /server/sonar-web/src/main/js/apps/metrics
parent6e85ae2bcf98c12c634e792742a72b8e02a04d33 (diff)
downloadsonarqube-e9ac473ec7dc0433cadf3f64f5d7980e38e0b93c.tar.gz
sonarqube-e9ac473ec7dc0433cadf3f64f5d7980e38e0b93c.zip
upgrade backbone.marionette
Diffstat (limited to 'server/sonar-web/src/main/js/apps/metrics')
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/create-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/delete-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/form-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/layout.js2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/list-item-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/list-view.js4
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/update-view.js2
7 files changed, 8 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/metrics/create-view.js b/server/sonar-web/src/main/js/apps/metrics/create-view.js
index 0db9fa70f11..5be34dac1ec 100644
--- a/server/sonar-web/src/main/js/apps/metrics/create-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/create-view.js
@@ -22,7 +22,7 @@ define([
}
}).done(function () {
that.collection.refresh();
- that.close();
+ that.destroy();
}).fail(function (jqXHR) {
that.enableForm();
that.showErrors([{ msg: jqXHR.responseJSON.err_msg }]);
diff --git a/server/sonar-web/src/main/js/apps/metrics/delete-view.js b/server/sonar-web/src/main/js/apps/metrics/delete-view.js
index 0acc3c055a9..8719b9fdb3a 100644
--- a/server/sonar-web/src/main/js/apps/metrics/delete-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/delete-view.js
@@ -22,7 +22,7 @@ define([
}
}).done(function () {
collection.refresh();
- that.close();
+ that.destroy();
}).fail(function (jqXHR) {
that.showErrors(jqXHR.responseJSON.errors, jqXHR.responseJSON.warnings);
});
diff --git a/server/sonar-web/src/main/js/apps/metrics/form-view.js b/server/sonar-web/src/main/js/apps/metrics/form-view.js
index 77b5f2a54a5..03e66f715b6 100644
--- a/server/sonar-web/src/main/js/apps/metrics/form-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/form-view.js
@@ -35,7 +35,7 @@ define([
this.$('#create-metric-type').select2({ width: '250px' });
},
- onClose: function () {
+ onDestroy: function () {
this._super();
this.$('[data-toggle="tooltip"]').tooltip('destroy');
},
diff --git a/server/sonar-web/src/main/js/apps/metrics/layout.js b/server/sonar-web/src/main/js/apps/metrics/layout.js
index 812212a42fa..9575307d96f 100644
--- a/server/sonar-web/src/main/js/apps/metrics/layout.js
+++ b/server/sonar-web/src/main/js/apps/metrics/layout.js
@@ -2,7 +2,7 @@ define([
'./templates'
], function () {
- return Marionette.Layout.extend({
+ return Marionette.LayoutView.extend({
template: Templates['metrics-layout'],
regions: {
diff --git a/server/sonar-web/src/main/js/apps/metrics/list-item-view.js b/server/sonar-web/src/main/js/apps/metrics/list-item-view.js
index 6328aea11d5..c6989e3b7b3 100644
--- a/server/sonar-web/src/main/js/apps/metrics/list-item-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/list-item-view.js
@@ -21,7 +21,7 @@ define([
this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'bottom' });
},
- onClose: function () {
+ onDestroy: function () {
this.$('[data-toggle="tooltip"]').tooltip('destroy');
},
diff --git a/server/sonar-web/src/main/js/apps/metrics/list-view.js b/server/sonar-web/src/main/js/apps/metrics/list-view.js
index 27060bbe7d4..b015c65d966 100644
--- a/server/sonar-web/src/main/js/apps/metrics/list-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/list-view.js
@@ -5,9 +5,9 @@ define([
return Marionette.CollectionView.extend({
tagName: 'ul',
- itemView: ListItemView,
+ childView: ListItemView,
- itemViewOptions: function () {
+ childViewOptions: function () {
return {
types: this.options.types,
domains: this.options.domains
diff --git a/server/sonar-web/src/main/js/apps/metrics/update-view.js b/server/sonar-web/src/main/js/apps/metrics/update-view.js
index c4edec81a8d..3dfea4a584e 100644
--- a/server/sonar-web/src/main/js/apps/metrics/update-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/update-view.js
@@ -21,7 +21,7 @@ define([
}
}).done(function () {
that.collection.refresh();
- that.close();
+ that.destroy();
}).fail(function (jqXHR) {
that.enableForm();
that.showErrors(jqXHR.responseJSON.errors, jqXHR.responseJSON.warnings);