diff --git a/tracks/app/helpers/todos_helper.rb b/tracks/app/helpers/todos_helper.rb index c6dc966c..593b26a3 100644 --- a/tracks/app/helpers/todos_helper.rb +++ b/tracks/app/helpers/todos_helper.rb @@ -192,7 +192,7 @@ module TodosHelper end def context_names_for_autocomplete - return array_or_string_for_javascript(['Create a new context']) if @contexts.empty? + #return array_or_string_for_javascript(['Create a new context']) if @contexts.empty? array_or_string_for_javascript( @contexts.collect{|c| escape_javascript(c.name) } ) end diff --git a/tracks/app/views/shared/_add_new_item_form.rhtml b/tracks/app/views/shared/_add_new_item_form.rhtml index bad4ff74..c0ddc9ae 100644 --- a/tracks/app/views/shared/_add_new_item_form.rhtml +++ b/tracks/app/views/shared/_add_new_item_form.rhtml @@ -56,11 +56,14 @@ Event.observe($('todo_project_name'), "blur", selectDefaultContext.bind($('todo_