mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-29 05:18:49 +01:00
Restore automatic focus of first todo form field after clicking edit icon to edit.
This commit is contained in:
parent
cfe4a482e1
commit
c7d1881472
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
page[dom_id(@todo, 'form')].down('.placeholder').replace_html :partial => 'todos/edit_form'
|
||||
page[dom_id(@todo, 'line')].hide
|
||||
page[dom_id(@todo, 'edit')].show
|
||||
page[dom_id(@todo, 'form')].down('table').down('input').focus
|
||||
page[dom_id(@todo, 'form')].down('input#todo_description').focus
|
||||
Loading…
Add table
Add a link
Reference in a new issue