From 7e7106265c8207bab8489a470ac951f3a1e50739 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Sun, 17 Jan 2010 18:37:43 -0800 Subject: [PATCH] Autofocus on todo description --- app/views/shared/_add_new_item_form.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_add_new_item_form.rhtml b/app/views/shared/_add_new_item_form.rhtml index e8226fb8..426f5806 100644 --- a/app/views/shared/_add_new_item_form.rhtml +++ b/app/views/shared/_add_new_item_form.rhtml @@ -22,7 +22,7 @@
<%= error_messages_for("item", :object_name => 'action') %>
- <%= text_field( "todo", "description", "size" => 30, "tabindex" => 1, "maxlength" => 100, "autocomplete" => "off") %> + <%= text_field( "todo", "description", "size" => 30, "tabindex" => 1, "maxlength" => 100, "autocomplete" => "off", :autofocus => 1) %> <%= text_area( "todo", "notes", "cols" => 29, "rows" => 6, "tabindex" => 2) %>