diff --git a/tracks/app/views/context/_context_form.rhtml b/tracks/app/views/context/_context_form.rhtml
index 20c22733..76ed4f3b 100644
--- a/tracks/app/views/context/_context_form.rhtml
+++ b/tracks/app/views/context/_context_form.rhtml
@@ -2,13 +2,12 @@
@context = context_form
%>
<%= error_messages_for 'context' %>
-
- <%= @context.position %>
-
-
-
-<%= text_field 'context', 'name', :class => 'context-name' %>
-
-<%= check_box 'context', 'hide', :class => 'context-hide' %>
-
+
+ |
+ <%= text_field 'context', 'name', :class => 'context-name' %> |
+
+
+ |
+ <%= check_box 'context', 'hide', :class => 'context-hide' %> |
+
<% @context = nil %>
\ No newline at end of file
diff --git a/tracks/app/views/context/_context_listing.rhtml b/tracks/app/views/context/_context_listing.rhtml
index af17241b..727797e7 100644
--- a/tracks/app/views/context/_context_listing.rhtml
+++ b/tracks/app/views/context/_context_listing.rhtml
@@ -19,10 +19,10 @@
<%= link_to_remote( image_tag("blank", :title =>"Delete context", :class=>"delete_item"),
:update => "container_#{context.id}",
- :loading => visual_effect(:fade, 'container_#{context.id}'),
+ :loading => visual_effect(:fade, "container_#{context.id}"),
:url => { :controller => "context", :action => "destroy", :id => context.id },
:confirm => "Are you sure that you want to delete the context \'#{context.name}\'?" ) + " " +
- link_to_function( image_tag( "blank", :title => "Edit context", :class=>"edit_item"), "Element.toggle('context-#{context.id}','context-#{context.id}-edit-form'); new Effect.Appear('context-#{context.id}-edit-form'); Form.focus_first('form-context-#{context.id}');" ) %>
+ link_to_function( image_tag( "blank", :title => "Edit context", :class=>"edit_item"), "Element.toggle('context-#{context.id}','context-#{context.id}-edit-form'); new Effect.Appear('context-#{context.id}-edit-form'); Form.focusFirstElement('form-context-#{context.id}');" ) %>
@@ -31,14 +31,16 @@
:html => { :id => "form-context-#{context.id}", :class => "inline-form" },
:update => "container_#{context.id}",
:complete => visual_effect(:appear, 'container_#{context.id}') %>
+
<%= end_form_tag %>
-
+
<% if controller.action_name == 'new_context' %>