#18 first load recaptcha config after document ready

This commit is contained in:
Kekskurse 2019-04-30 14:35:12 +02:00
parent 78e7b0b8d2
commit ecd0577ae2
2 changed files with 7 additions and 1 deletions

View file

@ -32,6 +32,9 @@
} }
}); });
} }
$(window).on( "load", function() {
getCaptchaConfig();
});
$(document).ready(function () { $(document).ready(function () {
getCaptchaConfig(); getCaptchaConfig();
console.log("READY"); console.log("READY");

View file

@ -50,9 +50,12 @@
} }
}); });
} }
$(window).on( "load", function() {
getCaptchaConfig();
});
$(document).ready(function () { $(document).ready(function () {
console.log("READY"); console.log("READY");
getCaptchaConfig();
$("#register").submit(function (e) { $("#register").submit(function (e) {
e.preventDefault(); e.preventDefault();
var form = $(this); var form = $(this);