From 69773d159d108768408208467738cbb09ac35b00 Mon Sep 17 00:00:00 2001 From: bsag Date: Sat, 15 Oct 2005 10:27:02 +0000 Subject: [PATCH] [Contributed by Luke]. Applied Luke's patch to enable newly created contexts and projects to be dragged and dropped. Fixes #136. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@154 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/context/list.rhtml | 16 ++++++++-------- tracks/app/views/project/list.rhtml | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tracks/app/views/context/list.rhtml b/tracks/app/views/context/list.rhtml index 2a0c2555..f351f15c 100644 --- a/tracks/app/views/context/list.rhtml +++ b/tracks/app/views/context/list.rhtml @@ -5,13 +5,13 @@ <%= render_partial( 'context_listing', context ) %> <% end %> - -<%= sortable_element 'list-contexts', - :tag => 'div', - :handle => 'handle', - :complete => visual_effect(:highlight, 'list-contexts'), - :url => {:controller => 'context', :action => 'order'} - %> +<% sortable_options = { + :tag => 'div', + :handle => 'handle', + :complete => visual_effect(:highlight, 'list-contexts'), + :url => {:controller => 'context', :action => 'order'} + }%> +<%= sortable_element 'list-contexts', sortable_options %>
Create new context » - -<%= sortable_element 'list-projects', - :tag => 'div', - :handle => 'handle', - :complete => visual_effect(:highlight, 'list-projects'), - :url => {:controller => 'project', :action => 'order'} - %> +<% sortable_options = { + :tag => 'div', + :handle => 'handle', + :complete => visual_effect(:highlight, 'list-contexts'), + :url => {:controller => 'context', :action => 'order'} + }%> +<%= sortable_element 'list-projects', sortable_options %>
Create new project »