diff --git a/app/views/todos/_edit_form.rhtml b/app/views/todos/_edit_form.rhtml index 10b9e3ed..c9cf4eb0 100644 --- a/app/views/todos/_edit_form.rhtml +++ b/app/views/todos/_edit_form.rhtml @@ -11,55 +11,55 @@ <%= text_area( "todo", "notes", "cols" => 29, "rows" => 4, "tabindex" => 9) %>
- -" /> - + + " /> + - + Event.observe($('<%= dom_id(@todo, 'project_name') %>'), "focus", <%= dom_id(@todo, 'project_autocompleter') %>.activate.bind(<%= dom_id(@todo, 'project_autocompleter') %>)); + Event.observe($('<%= dom_id(@todo, 'project_name') %>'), "click", <%= dom_id(@todo, 'project_autocompleter') %>.activate.bind(<%= dom_id(@todo, 'project_autocompleter') %>)); + Event.observe($('<%= dom_id(@todo, 'project_name') %>'), "blur", selectDefaultContext.bind($('<%= dom_id(@todo, 'project_name') %>'))); +
- - - + + + - +
<%= text_field_tag 'tag_list', tag_list_text, :id => dom_id(@todo, 'tag_list'), :size => 30, :tabindex => 12 %>
- -<%= date_field_tag("todo[due]", dom_id(@todo, 'due'), format_date(@todo.due), "tabindex" => 13) %> - - <%= image_tag("delete_off.png", :alt => "Clear due date") %> - + + <%= date_field_tag("todo[due]", dom_id(@todo, 'due'), format_date(@todo.due), "tabindex" => 13) %> + + <%= image_tag("delete_off.png", :alt => "Clear due date") %> +
- -<%= date_field_tag("todo[show_from]", dom_id(@todo, 'show_from'), format_date(@todo.show_from), "tabindex" => 14) %> - - <%= image_tag("delete_off.png", :alt => "Clear show from date") %> - + + <%= date_field_tag("todo[show_from]", dom_id(@todo, 'show_from'), format_date(@todo.show_from), "tabindex" => 14) %> + + <%= image_tag("delete_off.png", :alt => "Clear show from date") %> +
<% if controller.controller_name == "project" || @todo.deferred? -%> @@ -69,15 +69,23 @@ Event.observe($('<%= dom_id(@todo, 'context_name') %>'), "click", <%= dom_id(@to
- <%=image_tag("cancel.png", :alt => "") %> - Cancel + <%=image_tag("cancel.png", :alt => "") %> + Cancel
- + <%= calendar_setup( dom_id(@todo, 'due') ) %> <%= calendar_setup( dom_id(@todo, 'show_from') ) %> + + \ No newline at end of file diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 629273e6..321244cb 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -38,4 +38,3 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag' <% end -%> -<%= apply_behaviour ".date_clear:click","var selector_x = this.getAttribute('id').replace('_x', ''); $(selector_x).value='';" %>