From 13504a6474a72eb704ad28e086552482769c6aef Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Wed, 7 Oct 2009 16:36:14 -0400 Subject: [PATCH] Fix bug causing contexts to not hide after defer --- app/views/todos/update.js.rjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/todos/update.js.rjs b/app/views/todos/update.js.rjs index 152b61f9..0740533e 100644 --- a/app/views/todos/update.js.rjs +++ b/app/views/todos/update.js.rjs @@ -20,8 +20,8 @@ if @saved end else source_view do |from| - from.todo { page.visual_effect :fade, item_container_id(@todo), :duration => 0.4 } - from.tag { page.visual_effect :fade, item_container_id(@todo), :duration => 0.4 } + from.todo { page.visual_effect :fade, "c#{@todo.context.id}", :duration => 0.4 } + from.tag { page.visual_effect :fade, "c#{@todo.context.id}", :duration => 0.4 } from.context { page.show "c#{@original_item_context_id}empty-nd" } end end