aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/metrics
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-17 15:14:08 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-18 11:02:51 +0100
commit3f38540619ece91a5f77cdd202ba339d3eb41462 (patch)
tree17386de2fc2b0972bb5f42453af3fcf4ffcb416f /server/sonar-web/src/main/js/apps/metrics
parenta76c4cc7cee9d6974324d93d936b904eab4960dc (diff)
downloadsonarqube-3f38540619ece91a5f77cdd202ba339d3eb41462.tar.gz
sonarqube-3f38540619ece91a5f77cdd202ba339d3eb41462.zip
install webpack
Diffstat (limited to 'server/sonar-web/src/main/js/apps/metrics')
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/app.js1
-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.js10
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/list-footer-view.js2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/metrics.js2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/templates/metrics-form.hbs2
-rw-r--r--server/sonar-web/src/main/js/apps/metrics/templates/metrics-list-item.hbs2
7 files changed, 10 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/apps/metrics/app.js b/server/sonar-web/src/main/js/apps/metrics/app.js
index 15a2aacb1a5..944a9e73f4e 100644
--- a/server/sonar-web/src/main/js/apps/metrics/app.js
+++ b/server/sonar-web/src/main/js/apps/metrics/app.js
@@ -5,7 +5,6 @@ import Metrics from './metrics';
import HeaderView from './header-view';
import ListView from './list-view';
import ListFooterView from './list-footer-view';
-import '../../helpers/handlebars-helpers';
var App = new Marionette.Application(),
init = function () {
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 0210d0c2e35..114a7e47008 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
@@ -5,7 +5,7 @@ export default ModalForm.extend({
template: Template,
onFormSubmit: function (e) {
- this._super(e);
+ ModalForm.prototype.onFormSubmit.apply(this, arguments);
this.sendRequest();
},
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 91aeda83a7c..ad83175bf48 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
@@ -8,7 +8,7 @@ export default ModalForm.extend({
onRender: function () {
var that = this;
- this._super();
+ ModalForm.prototype.onRender.apply(this, arguments);
this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'bottom' });
this.$('#create-metric-domain').select2({
width: '250px',
@@ -34,17 +34,17 @@ export default ModalForm.extend({
},
onDestroy: function () {
- this._super();
+ ModalForm.prototype.onDestroy.apply(this, arguments);
this.$('[data-toggle="tooltip"]').tooltip('destroy');
},
- onFormSubmit: function (e) {
- this._super(e);
+ onFormSubmit: function () {
+ ModalForm.prototype.onFormSubmit.apply(this, arguments);
this.sendRequest();
},
serializeData: function () {
- return _.extend(this._super(), {
+ return _.extend(ModalForm.prototype.serializeData.apply(this, arguments), {
domains: this.options.domains,
types: this.options.types
});
diff --git a/server/sonar-web/src/main/js/apps/metrics/list-footer-view.js b/server/sonar-web/src/main/js/apps/metrics/list-footer-view.js
index 9a2aaa64000..78f7ce0bade 100644
--- a/server/sonar-web/src/main/js/apps/metrics/list-footer-view.js
+++ b/server/sonar-web/src/main/js/apps/metrics/list-footer-view.js
@@ -23,7 +23,7 @@ export default Marionette.ItemView.extend({
},
serializeData: function () {
- return _.extend(this._super(), {
+ return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
total: this.collection.total,
count: this.collection.length,
more: this.collection.hasMore()
diff --git a/server/sonar-web/src/main/js/apps/metrics/metrics.js b/server/sonar-web/src/main/js/apps/metrics/metrics.js
index 44fa17c8227..1173dcef473 100644
--- a/server/sonar-web/src/main/js/apps/metrics/metrics.js
+++ b/server/sonar-web/src/main/js/apps/metrics/metrics.js
@@ -20,7 +20,7 @@ export default Backbone.Collection.extend({
var opts = _.defaults(options || {}, { data: {} });
this.q = opts.data.q;
opts.data.isCustom = true;
- return this._super(opts);
+ return Backbone.Collection.prototype.fetch.call(this, opts);
},
fetchMore: function () {
diff --git a/server/sonar-web/src/main/js/apps/metrics/templates/metrics-form.hbs b/server/sonar-web/src/main/js/apps/metrics/templates/metrics-form.hbs
index 2739a9076c7..e7f23e20e5e 100644
--- a/server/sonar-web/src/main/js/apps/metrics/templates/metrics-form.hbs
+++ b/server/sonar-web/src/main/js/apps/metrics/templates/metrics-form.hbs
@@ -18,7 +18,7 @@
</div>
<div class="modal-field">
<label for="create-metric-domain">Domain</label>
- <input id="create-metric-domain" name="domain" type="text" maxlength="200" value="{{domain}}">
+ <input id="create-metric-domain" name="domain" type="text" maxlength="200" value="{{this.domain}}">
</div>
<div class="modal-field">
<label for="create-metric-type">Type<em class="mandatory">*</em></label>
diff --git a/server/sonar-web/src/main/js/apps/metrics/templates/metrics-list-item.hbs b/server/sonar-web/src/main/js/apps/metrics/templates/metrics-list-item.hbs
index 1fd85e6dfa4..26b784ea303 100644
--- a/server/sonar-web/src/main/js/apps/metrics/templates/metrics-list-item.hbs
+++ b/server/sonar-web/src/main/js/apps/metrics/templates/metrics-list-item.hbs
@@ -11,7 +11,7 @@
</div>
<div class="display-inline-block text-top width-20">
- <span class="js-metric-domain">{{domain}}</span>
+ <span class="js-metric-domain">{{this.domain}}</span>
</div>
<div class="display-inline-block text-top width-20">