From d44d90761ff6f5f7628ecad60c95e0a5c1e15088 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Fri, 29 Dec 2006 08:22:48 +0000 Subject: [PATCH] Fix todo/destroy.rjs so that a context will be removed from the homepage if the last todo in it is deleted git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@382 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/todo/destroy.rjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/views/todo/destroy.rjs b/tracks/app/views/todo/destroy.rjs index 614c7c9a..04583a54 100644 --- a/tracks/app/views/todo/destroy.rjs +++ b/tracks/app/views/todo/destroy.rjs @@ -1,7 +1,7 @@ if @saved page["item-#{@item.id}-container"].remove page['badge_count'].replace_html @down_count - page.visual_effect :fade, "c#{@item.context_id}", :duration => 0.4 if source_view_is :todo && @remaining_undone_in_context == 0 + page.visual_effect :fade, item_container_id, :duration => 0.4 if source_view_is(:todo) && @remaining_undone_in_context == 0 page[empty_container_msg_div_id].show if !empty_container_msg_div_id.nil? && @down_count == 0 else page.notify :error, "There was an error deleting the item #{@item.description}", 8.0