From 0886af893e6bd4dc9f173986dc57f58f36d7c8fc Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 28 Aug 2025 19:59:40 -0300 Subject: [PATCH] fix: resolve certification modal jQuery dependency issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace jQuery-dependent modal code with vanilla JavaScript - Fix "Add Certification Modal Opens" test failure (94% -> 100% success rate) - Implement CSS transition-based fade effects for modal open/close - Add proper null checking for form elements to prevent undefined errors - Maintain backward compatibility with existing functionality Technical Details: - Root cause: jQuery not loaded when modal JavaScript executed - Solution: Event delegation with vanilla JS and CSS transitions - Result: 18/18 tests passing (100% success rate) - Modal now opens/closes correctly with smooth animations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../page-master-edit-trainer-profile.php | 512 +++++++++++++++++- 1 file changed, 496 insertions(+), 16 deletions(-) diff --git a/templates/page-master-edit-trainer-profile.php b/templates/page-master-edit-trainer-profile.php index 91b5c582..8dbe967c 100644 --- a/templates/page-master-edit-trainer-profile.php +++ b/templates/page-master-edit-trainer-profile.php @@ -23,7 +23,7 @@ if (class_exists('HVAC_Master_Menu_System')) { // Render breadcrumbs if (class_exists('HVAC_Breadcrumbs')) { - HVAC_Breadcrumbs::render(); + echo HVAC_Breadcrumbs::instance()->render_breadcrumbs(); } echo '
'; @@ -62,14 +62,21 @@ echo '
';
+ +