From 4316912e86d421837cd016a77bbd2f217b173fb3 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Fri, 1 Aug 2008 17:16:11 +0200 Subject: [PATCH] fix error where completed todos were not added to the completed container error was introduced because of renaming of the id of the completed container in a previous commit --- app/views/todos/_todo.html.erb | 5 +---- app/views/todos/toggle_check.js.rjs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 8265fe8f..c03e64e6 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -27,7 +27,4 @@ <% end -%> - -<%= - apply_behaviour ".date_clear:click", - "var selector_x = this.getAttribute('id').replace('_x', ''); $(selector_x).value='';" %> +<%= apply_behaviour ".date_clear:click","var selector_x = this.getAttribute('id').replace('_x', ''); $(selector_x).value='';" %> \ No newline at end of file diff --git a/app/views/todos/toggle_check.js.rjs b/app/views/todos/toggle_check.js.rjs index 856d7d0d..8cfeac54 100644 --- a/app/views/todos/toggle_check.js.rjs +++ b/app/views/todos/toggle_check.js.rjs @@ -4,7 +4,7 @@ if @saved # completed todos move from their context to the completed container unless @prefs.hide_completed_actions? - page.insert_html :top, "completed", :partial => 'todos/todo', :locals => { :parent_container_type => "completed" } + page.insert_html :top, "completed_containeritems", :partial => 'todos/todo', :locals => { :parent_container_type => "completed" } page.visual_effect :highlight, dom_id(@todo, 'line'), {'startcolor' => "'#99ff99'"} page[empty_container_msg_div_id].show if @down_count == 0 && !empty_container_msg_div_id.nil? page.show 'tickler-empty-nd' if source_view_is(:project) && @deferred_count == 0