app/views/admin/session/new.html.erb in typus-3.0.8 vs app/views/admin/session/new.html.erb in typus-3.0.9
- old
+ new
@@ -6,25 +6,21 @@
<%= form_for :typus_user, :url => { :action => :create, :back_to => params[:back_to] } do |form| %>
<ul>
<li>
- <%= form.label :email, Typus.user_class.human_attribute_name(:email), :for => 'autofocus' %>
- <%= form.text_field :email, :size => 20, :class => "text", :id => 'autofocus', :autofocus => 'autofocus' %>
+ <%= form.label :email, Typus.user_class.human_attribute_name(:email) %>
+ <%= form.text_field :email, :size => 20, :class => "text", :autofocus => "autofocus" %>
</li>
<li>
<%= form.label :password, Typus.user_class.human_attribute_name(:password) %>
<%= form.password_field :password, :size => 20, :class => "text" %>
</li>
<li>
- <%= submit_tag Typus::I18n.t("Sign in"), :class => "button" %> <%= link_to Typus::I18n.t("Recover password"), forgot_password_admin_account_index_path if Typus.mailer_sender %>
+ <%= submit_tag Typus::I18n.t("Sign in"), :class => "button", :disable_with => Typus::I18n.t("Sending data ...") %> <%= link_to Typus::I18n.t("Recover password"), forgot_password_admin_account_index_path if Typus.mailer_sender %>
</li>
</ul>
-
- <script type="text/javascript">
- (function() { document.getElementById('autofocus').focus(); })();
- </script>
<% end %>