From c30f70d91ce06fcd3859437d5712d2fe666d84df Mon Sep 17 00:00:00 2001 From: Petr Macek Date: Thu, 5 Jan 2023 15:33:50 +0100 Subject: [PATCH] fix js error (#5132) --- auth_login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_login.php b/auth_login.php index 6a7e916fae..16d214d65f 100644 --- a/auth_login.php +++ b/auth_login.php @@ -387,7 +387,7 @@ html_auth_footer('login', $error_message, " $('.cactiAuthLeft').css('width',parseInt($(window).width()*0.33)+'px'); $('.cactiAuthRight').css('width',parseInt($(window).width()*0.33)+'px'); $('#login_${focus_control}').focus(); - $(function() { + if (storage.isSet('user_realm')) { var preferredRealm = storage.get('user_realm'); } else {