From e0404186adb28b46132990d0143e1157f94ce676 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Mon, 2 Feb 2026 14:54:13 +0300 Subject: [PATCH] fix: remove duplicate showToast declaration causing JavaScript error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: admin_pricing.html declared 'const showToast' while base.html already defined 'function showToast', causing SyntaxError that prevented all JavaScript from executing on the admin pricing page. Changes: - Removed duplicate showToast declaration from admin_pricing.html (lines 206-210) - Removed debug logging added in previous commit - Kept immediate function calls in base.html to ensure early initialization This fixes the issue where username and "Администратор цен" link disappeared when navigating to /admin/pricing. Co-Authored-By: Claude Sonnet 4.5 --- web/templates/admin_pricing.html | 6 ------ web/templates/base.html | 15 ++------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/web/templates/admin_pricing.html b/web/templates/admin_pricing.html index 0618a30..0562fb0 100644 --- a/web/templates/admin_pricing.html +++ b/web/templates/admin_pricing.html @@ -203,12 +203,6 @@