From 4ed1bedd32c867f0c893357dc9c1aea763c42849 Mon Sep 17 00:00:00 2001 From: Evandro Junior Date: Fri, 26 Jun 2015 10:38:36 -0300 Subject: [PATCH] adds old captcha using ajax --- index.html | 10 +++------- js/main.js | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index a6a2ae1..6702f1f 100644 --- a/index.html +++ b/index.html @@ -438,13 +438,7 @@
-
- - +
@@ -550,6 +544,8 @@ loadRequireJS(); + + diff --git a/js/main.js b/js/main.js index 3a6e2d5..7a04d8d 100644 --- a/js/main.js +++ b/js/main.js @@ -38,7 +38,6 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun var cat_seguranca_publica = 182; var cat_educacao = 181; var cat_reducao_da_pobreza = 183; - window.recaptchaSiteKey = '6LcLPAcTAAAAAKsd0bxY_TArhD_A7OL19SRCW7_i' }else{ var host = 'http://noosfero.com:3001'; @@ -1152,6 +1151,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun loginForm.find('.message').hide(); signupForm.find('#g-recaptcha').empty(); //grecaptcha.render(signupForm.find('#g-recaptcha')[0], {'sitekey' : window.recaptchaSiteKey }); + Recaptcha.create(window.recaptchaSiteKey, "captcha_v1", { theme: "red", callback: Recaptcha.focus_response_field } ); e.preventDefault(); }) -- libgit2 0.21.2