<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,13 +11,15 @@ 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?
+  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
-    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.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?
+    end
   end
 else
   page.notify :error, &quot;There was an error deleting the item #{@todo.description}&quot;, 8.0</diff>
      <filename>app/views/todos/destroy.js.rjs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7197618cc8fa0730fe4e213e143ca40d6f7368b2</id>
    </parent>
  </parents>
  <author>
    <name>Reinier Balt</name>
    <login></login>
    <email>lrbalt@gmail.com</email>
  </author>
  <url>http://github.com/bsag/tracks/commit/f5162ed8daf33debd25118a82e01470995bb9f0b</url>
  <id>f5162ed8daf33debd25118a82e01470995bb9f0b</id>
  <committed-date>2009-06-26T07:53:24-07:00</committed-date>
  <authored-date>2009-06-26T07:53:24-07:00</authored-date>
  <message>deleting a recurring todo, the next todo was not placed in the ticker. This patch fixes #909</message>
  <tree>b2ab5bb2609b8ee760aafe67256d9351096348e3</tree>
  <committer>
    <name>Reinier Balt</name>
    <login></login>
    <email>lrbalt@gmail.com</email>
  </committer>
</commit>
