Fix CSP-blocked chart scripts, undefined CSS classes, and double-firing click handlers
- Add nonce to charts and ticket-preview drawer inline <script> blocks in DashboardView.php (both were CSP-blocked — charts never rendered) - Add .lt-modal-xs (280px) to base.css — used by quickStatus/quickAssign modals but was undefined, causing them to use full modal width - Fix showConfirmModal in utils.js: class="text-center" → "lt-text-center" (undefined class); escape newlines as <br> so multi-line messages render - Remove duplicate click-handler cases from DashboardView.php inline script that were already handled by dashboard.js, preventing double-firing (export-tickets, open-settings, remove-filter, etc. were all called twice) - Fix manual-refresh action to use lt.autoRefresh.now() instead of bare window.location.reload() so modal/focus guards are respected Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -198,9 +198,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
case 'open-settings-modal':
|
||||
if (typeof openSettingsModal === 'function') openSettingsModal();
|
||||
break;
|
||||
// Refresh
|
||||
// Refresh — use lt.autoRefresh.now() so modal/focus guards are respected
|
||||
case 'manual-refresh':
|
||||
window.location.reload();
|
||||
if (window.lt && lt.autoRefresh) lt.autoRefresh.now();
|
||||
else window.location.reload();
|
||||
break;
|
||||
// Export
|
||||
case 'toggle-export-menu':
|
||||
|
||||
Reference in New Issue
Block a user