diff --git a/webcompat/static/js/lib/bugform.js b/webcompat/static/js/lib/bugform.js index bc02e1e2b..6e60da1b1 100644 --- a/webcompat/static/js/lib/bugform.js +++ b/webcompat/static/js/lib/bugform.js @@ -605,6 +605,8 @@ BugForm.prototype.hideLoadingIndicator = function() { }; BugForm.prototype.onFormSubmit = function(event) { + event.preventDefault(); + this.disableSubmits(); this.showLoadingIndicator(); this.maybeUploadImage(event).then( this.submitForm.bind(this), diff --git a/webcompat/static/js/lib/issue-wizard-bugform.js b/webcompat/static/js/lib/issue-wizard-bugform.js index 5aec83c16..6433e17a6 100644 --- a/webcompat/static/js/lib/issue-wizard-bugform.js +++ b/webcompat/static/js/lib/issue-wizard-bugform.js @@ -1152,6 +1152,8 @@ BugForm.prototype.hideLoadingIndicator = function() { }; BugForm.prototype.onFormSubmit = function(event) { + event.preventDefault(); + this.disableSubmits(); this.showLoadingIndicator(); this.maybeUploadImage(event).then( this.submitForm.bind(this),