Commit c2bcb889466fd79ea62a3737a2cda3efe83e36b7

Authored by Cyril Mougel
1 parent d55891c9
Exists in master and in 1 other branch production

Add autofocus on email on login page

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/devise/sessions/new.html.haml
... ... @@ -9,7 +9,7 @@
9 9 = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
10 10 .required
11 11 = f.label auth_key
12   - = f.text_field auth_key, :type => (Errbit::Config.user_has_username ? 'text' : 'email'), :tabindex => 1
  12 + = f.text_field auth_key, :type => (Errbit::Config.user_has_username ? 'text' : 'email'), :tabindex => 1, :autofocus => true
13 13  
14 14 .required
15 15 = link_to 'forget it?', new_password_path(resource_name), :class => 'float-right', :id => "forgot_password"
... ...