Skip to content

Commit

Permalink
Merge pull request #3065 from /issues/3050/1
Browse files Browse the repository at this point in the history
Issue #3050 - Disable submits on form submit
  • Loading branch information
Mike Taylor authored Oct 29, 2019
2 parents 975f699 + f7e761e commit b6a2d3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webcompat/static/js/lib/bugform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 2 additions & 0 deletions webcompat/static/js/lib/issue-wizard-bugform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b6a2d3a

Please sign in to comment.