Skip to content

Commit

Permalink
Make :disable_with a subkey of :data
Browse files Browse the repository at this point in the history
  • Loading branch information
lizconlan committed Jun 6, 2017
1 parent b4dcbbe commit f2f7fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/views/help/contact.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@

<div class="form_button">
<%= hidden_field_tag(:submitted_contact_form, 1) %>
<%= submit_tag "Envoyer votre message à #{ site_name }", :disable_with => "Envoi..." %>
<%= submit_tag "Envoyer votre message à #{ site_name }",
:data => { :disable_with => "Envoi..." } %>
</div>

<% end %>
3 changes: 2 additions & 1 deletion lib/views/help/contact.nl.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@

<div class="form_button">
<%= hidden_field_tag(:submitted_contact_form, 1) %>
<%= submit_tag "Verstuur bericht aan #{ site_name }", :disable_with => "Verzenden..." %>
<%= submit_tag "Verstuur bericht aan #{ site_name }",
:data => { :disable_with => "Verzenden..." } %>
</div>

<% end %>

0 comments on commit f2f7fce

Please sign in to comment.