0
# completed todos move from their context to the completed container
0
unless @prefs.hide_completed_actions?
0
page.insert_html :top, "completed_containeritems", :partial => 'todos/todo', :locals => { :parent_container_type => "completed" }
0
page.visual_effect :highlight, dom_id(@todo, 'line'), {'startcolor' => "'#99ff99'"}
0
@@ -17,12 +17,14 @@ if @saved
0
# show new todo if the completed todo was recurring
0
- unless @new_recurring_todo.nil? || @new_recurring_todo.deferred?
0
- page.call "todoItems.ensureVisibleWithEffectAppear", item_container_id(@new_recurring_todo)
0
- page.insert_html :bottom, item_container_id(@new_recurring_todo), :partial => 'todos/todo', :locals => { :todo => @new_recurring_todo, :parent_container_type => parent_container_type }
0
- page.visual_effect :highlight, dom_id(@new_recurring_todo, 'line'), {'startcolor' => "'#99ff99'"}
0
- page.notify :notice, "There is no next action after the recurring action you just finished. The recurrence is completed", 6.0 unless @new_recurring_todo.deferred?
0
+ if @todo.from_recurring_todo?
0
+ unless @new_recurring_todo.nil? || @new_recurring_todo.deferred?
0
+ page.call "todoItems.ensureVisibleWithEffectAppear", item_container_id(@new_recurring_todo)
0
+ page.insert_html :bottom, item_container_id(@new_recurring_todo), :partial => 'todos/todo', :locals => { :todo => @new_recurring_todo, :parent_container_type => parent_container_type }
0
+ page.visual_effect :highlight, dom_id(@new_recurring_todo, 'line'), {'startcolor' => "'#99ff99'"}
0
+ page.notify :notice, "There is no next action after the recurring action you just finished. The recurrence is completed", 6.0 if @new_recurring_todo.nil?
Comments
No one has commented yet.