Skip to content

Commit

Permalink
RecaptchaOptions AJAX API Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yalcin committed Sep 8, 2009
1 parent 3940522 commit 4f29ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recaptcha.rb
Expand Up @@ -23,7 +23,7 @@ def recaptcha_tags(options = {})
xhtml.div(:id => 'dynamic_recaptcha') {}
xhtml.script(:type => "text/javascript", :src => "#{uri}/js/recaptcha_ajax.js") {}
xhtml.script(:type => "text/javascript") do |x|
x << "Recaptcha.create('#{key}', document.getElementById('dynamic_recaptcha') );"
x << "Recaptcha.create('#{key}', document.getElementById('dynamic_recaptcha')#{(options[:display].blank?)? '' : ',RecaptchaOptions'});"
end
else
xhtml.script(:type => "text/javascript", :src => CGI::escapeHTML("#{uri}/challenge?k=#{key}&error=#{error}")) {}
Expand Down

0 comments on commit 4f29ea1

Please sign in to comment.