From 263677a46ee031277fae07109acac17b5ef821c4 Mon Sep 17 00:00:00 2001 From: yo momma Date: Tue, 3 Feb 2026 21:30:24 +0000 Subject: Refactor: extract page init snippets --- static/js/pages/expandable_login_init.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 static/js/pages/expandable_login_init.js (limited to 'static/js/pages/expandable_login_init.js') diff --git a/static/js/pages/expandable_login_init.js b/static/js/pages/expandable_login_init.js new file mode 100644 index 0000000..669836f --- /dev/null +++ b/static/js/pages/expandable_login_init.js @@ -0,0 +1,11 @@ +// Expandable login-form initializer (used by $form_login()$). +// Keeps templates mostly data-only. + +(function() { + if (typeof jQuery !== 'function') { return; } + + jQuery(function() { + if (typeof initExpandableLoginForm === 'function') { initExpandableLoginForm(); } + }); +})(); + -- cgit v1.2.3-70-g09d2