From 423926337d86a2fa77e9f33e01768b7a48fddf46 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 20 Apr 2011 11:39:30 +0200 Subject: [PATCH] add completed actions to the top of the completed-items container instead of bottom. From #1148 --- app/views/todos/toggle_check.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/todos/toggle_check.js.erb b/app/views/todos/toggle_check.js.erb index e2426560..935f4866 100644 --- a/app/views/todos/toggle_check.js.erb +++ b/app/views/todos/toggle_check.js.erb @@ -48,7 +48,7 @@ function remove_todo(next_steps) { function add_to_completed_container(next_steps) { <% unless current_user.prefs.hide_completed_actions? -%> - $('#<%= item_container_id(@todo) %>').append(html_for_todo()); + $('#<%= item_container_id(@todo) %>').prepend(html_for_todo()); $("#empty-d").slideUp(100); highlight_updated_todo(next_steps); <% end -%>