From 933b681a9fcdbb6283e0469b3806d2ded492d232 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 30 May 2024 14:25:31 +0200 Subject: [PATCH] Fixed if account_country is disabled --- system/templates/account.create.js.html.twig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system/templates/account.create.js.html.twig b/system/templates/account.create.js.html.twig index 61300039..8c3534ca 100644 --- a/system/templates/account.create.js.html.twig +++ b/system/templates/account.create.js.html.twig @@ -3,10 +3,12 @@ var lastSend = 0; $(function() { - updateFlag(); - $('#account_country').change(function() { + {% if setting('core.account_country') %} updateFlag(); - }); + $('#account_country').change(function() { + updateFlag(); + }); + {% endif %} $('#account_input').blur(function() { checkAccount();