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 »