Commit 0d2a46f1 authored by Tino Goratsch's avatar Tino Goratsch

fix the reCaptcha

parent 88ddbc46
......@@ -4,7 +4,7 @@
*/
/* global onloadCallback:true */
onloadCallback = () => {
const onloadCallback = () => {
jQuery('.recaptcha-placeholder').each(function () {
if (jQuery(this).children().length === 0) {
const widgetId = grecaptcha.render(this.id, {
......
"use strict";/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licencing details.
*/ /* global onloadCallback:true */onloadCallback=function onloadCallback(){jQuery(".recaptcha-placeholder").each(function(){if(0===jQuery(this).children().length){var a=grecaptcha.render(this.id,{sitekey:this.dataset.sitekey,size:this.dataset.size});jQuery(this).data("recaptchaId",a)}})},jQuery(document).on("acp3.captcha.recaptcha",function(){onloadCallback()}),jQuery(document).on("acp3.ajaxFrom.submit.fail",function(a,b){var c=jQuery(b.element).find(".recaptcha-placeholder");c&&0<c.length&&grecaptcha.reset(c.data("recaptchaId"))});
\ No newline at end of file
*/ /* global onloadCallback:true */var onloadCallback=function(){jQuery(".recaptcha-placeholder").each(function(){if(0===jQuery(this).children().length){var a=grecaptcha.render(this.id,{sitekey:this.dataset.sitekey,size:this.dataset.size});jQuery(this).data("recaptchaId",a)}})};jQuery(document).on("acp3.captcha.recaptcha",function(){onloadCallback()}),jQuery(document).on("acp3.ajaxFrom.submit.fail",function(a,b){var c=jQuery(b.element).find(".recaptcha-placeholder");c&&0<c.length&&grecaptcha.reset(c.data("recaptchaId"))});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment