Commit d8fee09e authored by Phil Hughes's avatar Phil Hughes

Fixed jQuery chaining

parent ecf7640b
...@@ -31,12 +31,10 @@ ...@@ -31,12 +31,10 @@
} }
formSubmit() { formSubmit() {
const $this = $(this); $(this).closest('form')
.trigger("submit.rails")
$this.closest('form') .end()
.trigger("submit.rails"); .disable();
$this.disable();
} }
formSuccess() { formSuccess() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment