public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
fix corner case for check-complete
lrbalt (author)
Tue Aug 05 02:00:04 -0700 2008
commit  3004d06c407924033404aa4e28de652009f05625
tree    07b1ac72e508d182374b9f8693c446430cc11025
parent  db86df5497f72b109f815c94a24ac9af3948349d
...
1
2
3
 
4
5
6
7
8
...
17
18
19
20
21
22
23
24
25
 
 
 
 
 
 
 
 
26
27
28
...
1
2
3
4
5
 
6
7
8
...
17
18
19
 
 
 
 
 
 
20
21
22
23
24
25
26
27
28
29
30
0
@@ -1,8 +1,8 @@
0
 if @saved
0
   page[@todo].remove
0
   if @todo.completed?
0
+
0
     # completed todos move from their context to the completed container
0
-
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
     end
0
     
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
- else
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
+ else
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?
0
+ end
0
     end
0
     
0
   else

Comments

    No one has commented yet.