[accessibility] automatically focus the first

input element when view is rendered
pull/6827/head
Romano Licker 13 years ago
parent 8d3ffd622f
commit 3fdefac008
  1. 2
      app/views/meetings/_form.html.erb

@ -1,7 +1,7 @@
<%= error_messages_for 'meeting' %>
<div class="box tabular">
<p><%= f.text_field :title, :required => true, :size => 60 %></p>
<p><%= f.text_field :title, :required => true, :size => 60, :class => "autofocus" %></p>
<p><%= f.text_field :location, :size => 60 %></p>
<p><%= f.text_field :start_date, :required => true, :size => 10 %><%= calendar_for('meeting_start_date') %> <%= time_select "meeting", "start_time", :ignore_date => true, :minute_step => 5 %></p>
<p><%= f.text_field :duration, :required => true, :size => 5 %><em>(<%=l :text_in_hours %>)</em>

Loading…
Cancel
Save