mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-14 00:16:15 +01:00
Fix the Ajax corner case described in #353 : "change of todo's context on home page should work like marking complete"
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@316 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
c0b0e14b9e
commit
dc73835c7b
2 changed files with 8 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ class TodoController < ApplicationController
|
|||
params["item"]["due"] = ""
|
||||
end
|
||||
@saved = @item.update_attributes params["item"]
|
||||
@remaining_undone_in_original_context = Todo.count(:conditions => ['user_id = ? and context_id = ? and type = ? and done = ?', @user.id, @original_item_context_id, "Immediate", false])
|
||||
end
|
||||
|
||||
def update_context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue