diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/gate-conditions-delete-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/gate-conditions-delete-view.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/gate-conditions-delete-view.js b/server/sonar-web/src/main/js/apps/quality-gates/gate-conditions-delete-view.js index ccbaa79c6d3..fb8fad5c333 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/gate-conditions-delete-view.js +++ b/server/sonar-web/src/main/js/apps/quality-gates/gate-conditions-delete-view.js @@ -25,20 +25,20 @@ import Template from './templates/quality-gates-condition-delete.hbs'; export default ModalForm.extend({ template: Template, - onFormSubmit: function () { + onFormSubmit () { ModalForm.prototype.onFormSubmit.apply(this, arguments); this.disableForm(); this.sendRequest(); }, - sendRequest: function () { - var that = this, - options = { - statusCode: { - // do not show global error - 400: null - } - }; + sendRequest () { + const that = this; + const options = { + statusCode: { + // do not show global error + 400: null + } + }; return this.model.destroy(options) .done(function () { that.destroy(); @@ -48,7 +48,7 @@ export default ModalForm.extend({ }); }, - serializeData: function () { + serializeData () { return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), { metric: this.options.metric }); |