From ecd0577ae2faa6d320e4810f7b888f090a33b862 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Tue, 30 Apr 2019 14:35:12 +0200 Subject: [PATCH] #18 first load recaptcha config after document ready --- resources/views/account/login.php | 3 +++ resources/views/account/register.php | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/account/login.php b/resources/views/account/login.php index bfb0ccf..ed37000 100644 --- a/resources/views/account/login.php +++ b/resources/views/account/login.php @@ -32,6 +32,9 @@ } }); } + $(window).on( "load", function() { + getCaptchaConfig(); + }); $(document).ready(function () { getCaptchaConfig(); console.log("READY"); diff --git a/resources/views/account/register.php b/resources/views/account/register.php index 6d50563..a0aca41 100644 --- a/resources/views/account/register.php +++ b/resources/views/account/register.php @@ -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);