#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 () {
getCaptchaConfig();
console.log("READY");

View File

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