Remove redundant _submit selectors
This commit is contained in:
parent
c7490ec32f
commit
3fd9d4bc13
|
@ -8,7 +8,7 @@
|
|||
<%= select_tag "city_state", '<option value="Boston, MA" selected="selected">Boston, MA</option>'.html_safe, :tabindex => 10 %>
|
||||
<%= label_tag "address", "Address", :id => "address_label" %>
|
||||
<%= text_field_tag "address", params[:address], :tabindex => 11 %>
|
||||
<%= submit_tag "Find Fire Hydrants", :id => "address_submit", :tabindex => 12 %>
|
||||
<%= submit_tag "Find fire hydrants", :tabindex => 12 %>
|
||||
<% end %>
|
||||
<div id="logos">
|
||||
<%= image_tag "logos/cfa.png", :alt => "Code for America", :title => "Code for America" %>
|
||||
|
|
|
@ -17,18 +17,18 @@
|
|||
<%= f.text_field "sms_number", :tabindex => 6 %>
|
||||
<%= f.label "password_confirmation", "Choose a password", :id => "user_password_confirmation_label" %>
|
||||
<%= f.password_field "password_confirmation", :tabindex => 7 %>
|
||||
<%= f.submit "Sign up", :tabindex => 8, :id => "user_sign_up_submit" %>
|
||||
<%= f.submit "Sign up", :tabindex => 8 %>
|
||||
<p>By signing up, you agree to the <%= link_to "Terms of Service", "#", :tabindex => 9 %>.</p>
|
||||
</div>
|
||||
<div id="user_sign_in_fields" style="display: none;">
|
||||
<%= f.label "password", "Password", :id => "user_password_label" %>
|
||||
<%= f.password_field "password", :tabindex => 0 %>
|
||||
<%= f.label "remember_me", (f.check_box("remember_me", :checked => true, :tabindex => 0).html_safe + "Stay signed in"), :id => "user_remember_me_label" %><br />
|
||||
<%= f.submit "Sign in", :tabindex => 0, :id => "user_sign_in_submit" %>
|
||||
<%= f.submit "Sign in", :tabindex => 0 %>
|
||||
<p><%= link_to "Forgot your password?", "#", :id => "user_forgot_password_link", :tabindex => 0 %></p>
|
||||
</div>
|
||||
<div id="user_forgot_password_fields" style="display: none;">
|
||||
<%= f.submit "Email me my password", :tabindex => 0, :id => "user_forgot_password_submit" %>
|
||||
<%= f.submit "Email me my password", :tabindex => 0 %>
|
||||
<p><%= link_to "Never mind. I remembered my password.", "#", :id => "user_remembered_password", :tabindex => 0 %></p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
<%= f.password_field "password", :tabindex => 6 %>
|
||||
<%= f.label "current_password", "Current password", :id => "user_current_password_label" %> <em>(we need your current password to confirm your changes)</em>
|
||||
<%= f.password_field "current_password", :tabindex => 7 %>
|
||||
<%= f.submit "Update", :tabindex => 8, :id => "user_update_submit" %>
|
||||
<%= f.submit "Update", :tabindex => 8 %>
|
||||
<% end %>
|
||||
<%= render(:partial => 'hydrants/back') %>
|
||||
|
|
|
@ -66,7 +66,7 @@ $(function() {
|
|||
type: 'GET',
|
||||
url: '/hydrants.json',
|
||||
data: {
|
||||
'commit': $('#address_submit').val(),
|
||||
'commit': $('#address_form input[type="submit"]').val(),
|
||||
'utf8': '✓',
|
||||
'authenticity_token': $('#address_form input[name="authenticity_token"]').val(),
|
||||
'lat': lat,
|
||||
|
@ -136,7 +136,7 @@ $(function() {
|
|||
type: 'GET',
|
||||
url: '/address.json',
|
||||
data: {
|
||||
'commit': $('#address_submit').val(),
|
||||
'commit': submitButton.val(),
|
||||
'utf8': '✓',
|
||||
'authenticity_token': $('#address_form input[name="authenticity_token"]').val(),
|
||||
'city_state': $('#city_state').val(),
|
||||
|
@ -219,7 +219,7 @@ $(function() {
|
|||
type: 'POST',
|
||||
url: '/users.json',
|
||||
data: {
|
||||
'commit': $('#user_sign_up_submit').val(),
|
||||
'commit': submitButton.val(),
|
||||
'utf8': '✓',
|
||||
'authenticity_token': $('#combo_form input[name="authenticity_token"]').val(),
|
||||
'user': {
|
||||
|
@ -304,7 +304,7 @@ $(function() {
|
|||
type: 'POST',
|
||||
url: '/users/sign_in.json',
|
||||
data: {
|
||||
'commit': $('#user_sign_in_submit').val(),
|
||||
'commit': submitButton.val(),
|
||||
'utf8': '✓',
|
||||
'authenticity_token': $('#combo_form input[name="authenticity_token"]').val(),
|
||||
'user': {
|
||||
|
@ -349,7 +349,7 @@ $(function() {
|
|||
type: 'POST',
|
||||
url: '/users/password.json',
|
||||
data: {
|
||||
'commit': $('#user_forgot_password_submit').val(),
|
||||
'commit': submitButton.val(),
|
||||
'utf8': '✓',
|
||||
'authenticity_token': $('#combo_form input[name="authenticity_token"]').val(),
|
||||
'user': {
|
||||
|
|
Loading…
Reference in New Issue