<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,16 +11,18 @@ if @saved
   page['tickler-empty-nd'].show if source_view_is(:deferred) &amp;&amp; @down_count == 0
   
   # show new todo if the completed todo was recurring
-  unless @new_recurring_todo.nil? || @new_recurring_todo.deferred?
-    page.call &quot;todoItems.ensureVisibleWithEffectAppear&quot;, item_container_id(@new_recurring_todo)
-    page.insert_html :bottom, item_container_id(@new_recurring_todo), :partial =&gt; 'todos/todo', :locals =&gt; { :todo =&gt; @new_recurring_todo, :parent_container_type =&gt; parent_container_type }
-    page.visual_effect :highlight, dom_id(@new_recurring_todo, 'line'), {'startcolor' =&gt; &quot;'#99ff99'&quot;}      
-    page.notify :notice, &quot;Action was deleted. Because this action is recurring, a new action was added&quot;, 6.0
-  else
-    if @todo.recurring_todo.todos.active.count == 0
-      page.notify :notice, &quot;There is no next action after the recurring action you just deleted. The recurrence is completed&quot;, 6.0 unless @recurring_todo.nil?
+  if @todo.from_recurring_todo?
+    unless @new_recurring_todo.nil? || @new_recurring_todo.deferred?
+      page.call &quot;todoItems.ensureVisibleWithEffectAppear&quot;, item_container_id(@new_recurring_todo)
+      page.insert_html :bottom, item_container_id(@new_recurring_todo), :partial =&gt; 'todos/todo', :locals =&gt; { :todo =&gt; @new_recurring_todo, :parent_container_type =&gt; parent_container_type }
+      page.visual_effect :highlight, dom_id(@new_recurring_todo, 'line'), {'startcolor' =&gt; &quot;'#99ff99'&quot;}      
+      page.notify :notice, &quot;Action was deleted. Because this action is recurring, a new action was added&quot;, 6.0
+    else
+      if @todo.recurring_todo.todos.active.count == 0
+        page.notify :notice, &quot;There is no next action after the recurring action you just deleted. The recurrence is completed&quot;, 6.0 if @new_recurring_todo.nil?
+      end
     end
   end
 else
   page.notify :error, &quot;There was an error deleting the item #{@todo.description}&quot;, 8.0
-end
\ No newline at end of file
+end</diff>
      <filename>app/views/todos/destroy.js.rjs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f5162ed8daf33debd25118a82e01470995bb9f0b</id>
    </parent>
  </parents>
  <author>
    <name>Reinier Balt</name>
    <login></login>
    <email>lrbalt@gmail.com</email>
  </author>
  <url>http://github.com/bsag/tracks/commit/30eeb634750f9e83c595e4667a73785143fd8112</url>
  <id>30eeb634750f9e83c595e4667a73785143fd8112</id>
  <committed-date>2009-06-29T04:10:53-07:00</committed-date>
  <authored-date>2009-06-29T04:10:53-07:00</authored-date>
  <message>fix #918. Thanks Claus for finding this.

regression from last commit</message>
  <tree>c13342c064c243b5333564fe8f4037fd8e4dfc9c</tree>
  <committer>
    <name>Reinier Balt</name>
    <login></login>
    <email>lrbalt@gmail.com</email>
  </committer>
</commit>
