Skip to content

Commit

Permalink
fixed: options[:display] was ignored via ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDanger authored and Jason L Perry committed Oct 14, 2009
1 parent 3615b3d commit 742ea80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recaptcha/client_helper.rb
Expand Up @@ -17,7 +17,7 @@ def recaptcha_tags(options = {})
html << %{<div id="dynamic_recaptcha"></div>}
html << %{<script type="text/javascript" src="#{uri}/js/recaptcha_ajax.js"></script>\n}
html << %{<script type="text/javascript">\n}
html << %{ Recaptcha.create('#{key}', document.getElementById('dynamic_recaptcha')#{options[:display] ? '' : ',RecaptchaOptions'});}
html << %{ Recaptcha.create('#{key}', document.getElementById('dynamic_recaptcha')#{options[:display] ? ',RecaptchaOptions' : ''});}
html << %{</script>\n}
else
html << %{<script type="text/javascript" src="#{uri}/challenge?k=#{key}}
Expand Down

0 comments on commit 742ea80

Please sign in to comment.