From 793f43ef07b823b274aed578ec63b2b4c761d337 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Sun, 9 Nov 2008 11:15:49 +0100 Subject: [PATCH] fix #789 by setting tab order for all elements in mobile edit form I do not have an iPhone to test so I cannot check the report. Please report if the fix is wrong --- app/views/todos/_edit_mobile.rhtml | 8 ++++---- app/views/todos/new.m.erb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/todos/_edit_mobile.rhtml b/app/views/todos/_edit_mobile.rhtml index f1caa191..0837f026 100644 --- a/app/views/todos/_edit_mobile.rhtml +++ b/app/views/todos/_edit_mobile.rhtml @@ -33,8 +33,8 @@ end %>

<%= text_field_tag "tag_list", @tag_list_text, :size => 30, :tabindex => 6 %>

-<%= date_select("todo", "due", :order => [:day, :month, :year], - :start_year => this_year, :include_blank => true) %> +<%= date_select("todo", "due", {:order => [:day, :month, :year], + :start_year => this_year, :include_blank => true}, :tabindex => 7) %>

-<%= date_select("todo", "show_from", :order => [:day, :month, :year], - :start_year => this_year, :include_blank => true) %> +<%= date_select("todo", "show_from", {:order => [:day, :month, :year], + :start_year => this_year, :include_blank => true}, :tabindex => 8) %> diff --git a/app/views/todos/new.m.erb b/app/views/todos/new.m.erb index 2dfe0fd7..361e223d 100644 --- a/app/views/todos/new.m.erb +++ b/app/views/todos/new.m.erb @@ -1,5 +1,5 @@ <% form_tag formatted_todos_path(:m), :method => :post do %> <%= render :partial => 'edit_mobile' %> -

+

<% end -%> <%= link_to "Back", @return_path %> \ No newline at end of file