Skip to content

Commit

Permalink
Merge branch 'yalcin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason L Perry committed Sep 12, 2009
2 parents 0e4dd60 + 4f29ea1 commit 6362397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recaptcha.rb
Original file line number Diff line number Diff line change
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 6362397

Please sign in to comment.