Fixed jQuery chaining
This commit is contained in:
parent
ecf7640b28
commit
d8fee09e33
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue