diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 548219f9..06c1bf5c 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -389,7 +389,10 @@ module TodosHelper (@original_item_was_deferred && @remaining_deferred_or_pending_count == 0 && (@todo.completed? || @tag_was_removed)) container_id = "empty-d" if @completed_count && @completed_count == 0 && !@todo.completed? } - page.context { container_id = "c#{@original_item_context_id}empty-nd" if @remaining_in_context == 0 } + page.context { + container_id = "c#{@original_item_context_id}empty-nd" if @remaining_in_context == 0 + container_id = "empty-d" if @completed_count && @completed_count == 0 && !@todo.completed? + } page.todo { container_id = "c#{@original_item_context_id}empty-nd" if @remaining_in_context == 0 } end return container_id.blank? ? "" : "$(\"##{container_id}\").slideDown(100);" diff --git a/app/views/todos/_new_multi_todo_form.rhtml b/app/views/todos/_new_multi_todo_form.rhtml index ecffbc0e..36f13e16 100644 --- a/app/views/todos/_new_multi_todo_form.rhtml +++ b/app/views/todos/_new_multi_todo_form.rhtml @@ -2,8 +2,8 @@