From d1017a301aae25e0a1dedbce544202d0905b3299 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Sat, 4 Jul 2015 08:27:59 -0300 Subject: [PATCH] Set Serpro captcha draft on the front end ONLY --- index.html | 20 ++++++++++++++++++-- js/main.js | 5 +---- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index c4830cb..ab9409f 100644 --- a/index.html +++ b/index.html @@ -439,7 +439,23 @@
-
+
+ + +
+
+
+ Imagem Captcha +
+
+ + +
+
+ + +
+
@@ -554,7 +570,7 @@ loadRequireJS(); - + diff --git a/js/main.js b/js/main.js index bf1e724..bff85b8 100644 --- a/js/main.js +++ b/js/main.js @@ -1152,8 +1152,6 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun signupForm.find(".password").show(); signupForm.find(".password-confirmation").show(); loginForm.find('.message').hide(); - signupForm.find('#g-recaptcha').empty(); - Recaptcha.create(window.recaptchaSiteKey, signupForm.find('#g-recaptcha')[0], { lang : 'pt', theme: "clean", callback: Recaptcha.focus_response_field } ); e.preventDefault(); }) @@ -1190,8 +1188,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun $(document).trigger('login:success', data); }).fail(function(data) { var msg = ""; - window.signupForm.find('#g-recaptcha').empty(); - Recaptcha.create(window.recaptchaSiteKey, window.signupForm.find('#g-recaptcha')[0], { lang : 'pt', theme: "clean", callback: Recaptcha.focus_response_field } ); + //RELOAD CAPTCHA HERE try{ msg = Main.responseToText(data.responseJSON.message); -- libgit2 0.21.2