diff options
Diffstat (limited to 'server/sonar-web/src/main/js/quality-profiles/restore-profile-view.js')
-rw-r--r-- | server/sonar-web/src/main/js/quality-profiles/restore-profile-view.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/quality-profiles/restore-profile-view.js b/server/sonar-web/src/main/js/quality-profiles/restore-profile-view.js index dea4bfeeab0..75b7a735cdd 100644 --- a/server/sonar-web/src/main/js/quality-profiles/restore-profile-view.js +++ b/server/sonar-web/src/main/js/quality-profiles/restore-profile-view.js @@ -31,9 +31,11 @@ define([ onFormSubmit: function (e) { var that = this; ModalFormView.prototype.onFormSubmit.apply(this, arguments); + this.disableForm(); uploader({ form: $(e.currentTarget) }).done(function (r) { if (_.isArray(r.errors) || _.isArray(r.warnings)) { that.showErrors(r.errors, r.warnings); + that.enableForm(); } else { that.collection.fetch().done(function () { var profile = that.collection.findWhere({ key: r.profile.key }); |