mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 03:30:13 +01:00
Merge branch 'master' of git@github.com:bsag/tracks
* 'master' of git@github.com:bsag/tracks: Fixed bug where adding tag to Todo via Ajax inline edit didn't reflect tag changes immediately. Restore automatic focus of first todo form field after clicking edit icon to edit.
This commit is contained in:
commit
65fe971d32
2 changed files with 5 additions and 2 deletions
|
|
@ -175,7 +175,10 @@ class TodosController < ApplicationController
|
|||
def update
|
||||
@source_view = params['_source_view'] || 'todo'
|
||||
init_data_for_sidebar unless mobile?
|
||||
@todo.tag_with(params[:tag_list]) if params[:tag_list]
|
||||
if params[:tag_list]
|
||||
@todo.tag_with(params[:tag_list])
|
||||
@todo.tags(true) #force a reload for proper rendering
|
||||
end
|
||||
@original_item_context_id = @todo.context_id
|
||||
@original_item_project_id = @todo.project_id
|
||||
@original_item_was_deferred = @todo.deferred?
|
||||
|
|
|
|||
|
|
@ -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