From 9841f68b5de252b7cc7547df4f1cee7e4ab448ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sun, 4 Feb 2024 09:59:51 +0100 Subject: [PATCH] Change to defer --- templates/adminActions.html | 12 ++++-------- templates/userActions.html | 8 +++----- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/templates/adminActions.html b/templates/adminActions.html index b7e68ef..ae218d2 100644 --- a/templates/adminActions.html +++ b/templates/adminActions.html @@ -52,16 +52,12 @@ listActivationCodes(); } - function admininit(){ - listActivationCodes(); - listUsers(); - userinit(); - } - - window.onload = admininit; - +

Activation Codes

diff --git a/templates/userActions.html b/templates/userActions.html index 5ef978f..1ebf70d 100644 --- a/templates/userActions.html +++ b/templates/userActions.html @@ -59,12 +59,10 @@ populateUserInfoFields(result.UserInfo); } } + - function userinit() { - getUserInfo(); - } - - window.onload = userinit; +