diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-01-26 22:05:27 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-01-26 22:05:27 +0300 |
commit | 6d96e83cfdfde176cd5b37b4e4cc3d8669daf51e (patch) | |
tree | 0ed9d22bcf1df796ccdde5be6b3fc05b51bacb5b /app/assets/javascripts | |
parent | 9d7999242db6ab641df1351bae7cfd5766cfeaa3 (diff) |
Prevent form to be submitted twice
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/profile/profile.js.es6 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/profile/profile.js.es6 b/app/assets/javascripts/profile/profile.js.es6 index 6dbaae25f2a..5aec9c813fe 100644 --- a/app/assets/javascripts/profile/profile.js.es6 +++ b/app/assets/javascripts/profile/profile.js.es6 @@ -36,6 +36,7 @@ } onSubmitForm(e) { + e.preventDefault(); return this.saveForm(); } |