From 8a13721b8cad5cabc2d26e509d49616dc187b9b1 Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Tue, 29 Jan 2013 01:31:32 +0900 Subject: Fix JavaScript syntax in code comment [ci skip] --- actionpack/lib/action_view/helpers/form_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'actionpack/lib/action_view/helpers/form_helper.rb') diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 4a31de715d..3dc5bb42e2 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -771,8 +771,8 @@ module ActionView # text_field(:post, :title, class: "create_input") # # => # - # text_field(:session, :user, onchange: "if $('#session_user').value == 'admin' { alert('Your login can not be admin!'); }") - # # => + # text_field(:session, :user, onchange: "if ($('#session_user').val() === 'admin') { alert('Your login can not be admin!'); }") + # # => # # text_field(:snippet, :code, size: 20, class: 'code_input') # # => @@ -792,8 +792,8 @@ module ActionView # password_field(:account, :secret, class: "form_input", value: @account.secret) # # => # - # password_field(:user, :password, onchange: "if $('user[password]').length > 30 { alert('Your password needs to be shorter!'); }") - # # => + # password_field(:user, :password, onchange: "if ($('#user_password').val().length > 30) { alert('Your password needs to be shorter!'); }") + # # => # # password_field(:account, :pin, size: 20, class: 'form_input') # # => -- cgit v1.2.3