summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/issuable_form.js
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-05-29 17:51:30 -0700
committerStan Hu <stanhu@gmail.com>2018-05-29 20:48:21 -0700
commit294ab0fffd8776f9b79a458a276cdce89b0d2fa6 (patch)
tree8225b2596386268b0353c4114ea2da1ee82c3825 /app/assets/javascripts/issuable_form.js
parentd3b39a835f1ef42d71ba7b478d9e7320c4167b4e (diff)
downloadgitlab-ce-294ab0fffd8776f9b79a458a276cdce89b0d2fa6.tar.gz
Fix local storage not being cleared after creating a new issue
Creating a new issue will always result in a 302 redirect to the newly-created issue. This reverts the change introduced in https://gitlab.com/gitlab-org/gitlab-ce/commit/7684217d6806408cd338260119364419260d1720 to handle the case where a user is in the middle of creating a new form and redirected to accepting the terms of service. Closes #37162
Diffstat (limited to 'app/assets/javascripts/issuable_form.js')
-rw-r--r--app/assets/javascripts/issuable_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/issuable_form.js b/app/assets/javascripts/issuable_form.js
index 90d4e19e90b..bb8b3d91e40 100644
--- a/app/assets/javascripts/issuable_form.js
+++ b/app/assets/javascripts/issuable_form.js
@@ -30,7 +30,7 @@ export default class IssuableForm {
}
this.initAutosave();
- this.form.on('submit:success', this.handleSubmit);
+ this.form.on('submit', this.handleSubmit);
this.form.on('click', '.btn-cancel', this.resetAutosave);
this.initWip();