From 5164ee04c00f53b5d0159ed03a65565820fc7a2d Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 31 Jul 2014 10:44:51 -0300 Subject: [PATCH] Fix recaptcha colorbox panel in comment form --- app/views/comment/_comment_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comment/_comment_form.html.erb b/app/views/comment/_comment_form.html.erb index 549354f..af7d312 100644 --- a/app/views/comment/_comment_form.html.erb +++ b/app/views/comment/_comment_form.html.erb @@ -31,7 +31,7 @@ function check_captcha(button, confirm_action) { return true; <% else %> jQuery('#recaptcha-container').show(); - jQuery.colorbox({ inline : true, href : '#recaptcha-container', maxWidth : '600px', maxHeight : '300px' }); + jQuery.colorbox({ html: jQuery('#recaptcha-container').html(), maxWidth : '600px', maxHeight : '300px' }); jQuery('#confirm-captcha').unbind('click'); jQuery('#confirm-captcha').bind('click', function() { jQuery.colorbox.close(); -- libgit2 0.21.2