Resolves missing data on /master-trainer/trainers/ page by adding the JavaScript file that handles AJAX loading of trainer statistics and table data. ✅ Changes: - Created assets/js/hvac-master-trainers-overview.js - Handles AJAX calls to load trainer stats and filtered trainer lists - Implements filter change handlers for status, region, and search - Includes debounced search input for better UX - Initializes interactive table elements after load - Updated includes/class-hvac-master-trainers-overview.php - Added enqueue_scripts() method to properly load the JS file - Registers wp_enqueue_scripts action hook - Detects master trainer pages via shortcode or template slug - Ensures jQuery dependency is met The page was showing navigation and filters but no data because the JavaScript to make AJAX calls to hvac_master_trainers_stats and hvac_master_trainers_filter actions was completely missing. Tested on staging and deployed to production. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| css | ||
| images | ||
| js | ||