From 950d02d6ab1787cf3b1123289493bd478917601d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 28 Aug 2026 19:41:00 -0400 Subject: [PATCH] Fix: Six ajax modals had dead JS - DOMContentLoaded had already fired before their scripts were injected. New itflowReady() helper restores jQuery .ready() semantics. Fixes notification pagination, asset OS autocomplete, contact auth toggle, AI ticket summary, AI document template generation --- .../document_template_add.php | 2 +- agent/modals/asset/asset_add.php | 2 +- agent/modals/contact/contact_add.php | 2 +- agent/modals/contact/contact_edit.php | 2 +- agent/modals/ticket/ticket_summary.php | 2 +- js/app.js | 25 +++++++++++++++---- modals/notifications.php | 5 ++-- 7 files changed, 28 insertions(+), 12 deletions(-) diff --git a/admin/modals/document_template/document_template_add.php b/admin/modals/document_template/document_template_add.php index e9361181b..c38fe28e4 100644 --- a/admin/modals/document_template/document_template_add.php +++ b/admin/modals/document_template/document_template_add.php @@ -49,7 +49,7 @@ ob_start();