mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
fix #892. The spinner was never removed. In the normal case this didn't matter because the whole edit form was removed anyway. But in case of an error, the form remained visible and the submit button was not accessable anymore.
fixed by keeping track of the last spinning submit button for todos
This commit is contained in:
parent
ceba367942
commit
f2a1f86274
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ module TodosHelper
|
|||
&block )
|
||||
apply_behavior 'form.edit_todo_form', make_remote_form(
|
||||
:method => :put,
|
||||
:before => "this.down('button.positive').startWaiting()",
|
||||
:loaded => "this.down('button.positive').stopWaiting()",
|
||||
:before => "todoSpinner = this.down('button.positive'); todoSpinner.startWaiting()",
|
||||
:loaded => "todoSpinner.stopWaiting()",
|
||||
:condition => "!(this.down('button.positive').isWaiting())"),
|
||||
:prevent_default => true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue