Fixed jQuery chaining

This commit is contained in:
Phil Hughes 2016-09-07 12:36:21 +01:00
parent ecf7640b28
commit d8fee09e33
1 changed files with 4 additions and 6 deletions

View File

@ -31,12 +31,10 @@
}
formSubmit() {
const $this = $(this);
$this.closest('form')
.trigger("submit.rails");
$this.disable();
$(this).closest('form')
.trigger("submit.rails")
.end()
.disable();
}
formSuccess() {