if @saved if @remaining == 0 page.show 'recurring-todos-empty-nd' end page.notify :notice, t('todos.recurring_deleted_success') + t(:todo_removed, :count => @number_of_todos), 5.0 page[@recurring_todo].remove page.visual_effect :fade, dom_id(@recurring_todo), :duration => 0.4 else page.notify :error, t('todos.error_deleting_recurring', :description => @recurring_todo.description), 8.0 end