fix: TDS priority selector in ticket.js, asset versioning in admin views
- updateTicketField() now targets .lt-frame-ticket[data-priority] (TDS v1.2)
instead of old .priority-indicator / .ticket-container selectors
- All 7 admin views: keyboard-shortcuts.js now uses dynamic ?v={$_v}
instead of hardcoded unversioned path
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-12
@@ -391,19 +391,10 @@ function handleMetadataChanges() {
|
|||||||
// Update window.ticketData
|
// Update window.ticketData
|
||||||
window.ticketData[fieldName] = fieldName === 'priority' ? parseInt(newValue) : newValue;
|
window.ticketData[fieldName] = fieldName === 'priority' ? parseInt(newValue) : newValue;
|
||||||
|
|
||||||
// For priority, also update the priority indicator if it exists
|
// For priority, update the TDS frame border accent
|
||||||
if (fieldName === 'priority') {
|
if (fieldName === 'priority') {
|
||||||
const priorityIndicator = document.querySelector('.priority-indicator');
|
const ticketFrame = document.querySelector('.lt-frame-ticket');
|
||||||
if (priorityIndicator) {
|
if (ticketFrame) ticketFrame.setAttribute('data-priority', newValue);
|
||||||
priorityIndicator.className = `priority-indicator priority-${newValue}`;
|
|
||||||
priorityIndicator.textContent = 'P' + newValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update ticket container priority attribute
|
|
||||||
const ticketContainer = document.querySelector('.ticket-container');
|
|
||||||
if (ticketContainer) {
|
|
||||||
ticketContainer.setAttribute('data-priority', newValue);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $pageTitle = 'API Keys';
|
|||||||
$activeNav = 'admin-api-keys';
|
$activeNav = 'admin-api-keys';
|
||||||
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
||||||
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
||||||
$pageScripts = ['/assets/js/keyboard-shortcuts.js'];
|
$pageScripts = ["/assets/js/keyboard-shortcuts.js?v={$_v}"];
|
||||||
include __DIR__ . '/../../views/layout_header.php';
|
include __DIR__ . '/../../views/layout_header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $pageTitle = 'Audit Log';
|
|||||||
$activeNav = 'admin-audit-log';
|
$activeNav = 'admin-audit-log';
|
||||||
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
||||||
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
||||||
$pageScripts = ['/assets/js/keyboard-shortcuts.js'];
|
$pageScripts = ["/assets/js/keyboard-shortcuts.js?v={$_v}"];
|
||||||
include __DIR__ . '/../../views/layout_header.php';
|
include __DIR__ . '/../../views/layout_header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $pageTitle = 'Custom Fields';
|
|||||||
$activeNav = 'admin-custom-fields';
|
$activeNav = 'admin-custom-fields';
|
||||||
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
||||||
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
||||||
$pageScripts = ['/assets/js/keyboard-shortcuts.js'];
|
$pageScripts = ["/assets/js/keyboard-shortcuts.js?v={$_v}"];
|
||||||
include __DIR__ . '/../../views/layout_header.php';
|
include __DIR__ . '/../../views/layout_header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $pageTitle = 'Recurring Tickets';
|
|||||||
$activeNav = 'admin-recurring';
|
$activeNav = 'admin-recurring';
|
||||||
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
||||||
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
||||||
$pageScripts = ['/assets/js/keyboard-shortcuts.js'];
|
$pageScripts = ["/assets/js/keyboard-shortcuts.js?v={$_v}"];
|
||||||
include __DIR__ . '/../../views/layout_header.php';
|
include __DIR__ . '/../../views/layout_header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $pageTitle = 'Templates';
|
|||||||
$activeNav = 'admin-templates';
|
$activeNav = 'admin-templates';
|
||||||
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
||||||
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
||||||
$pageScripts = ['/assets/js/keyboard-shortcuts.js'];
|
$pageScripts = ["/assets/js/keyboard-shortcuts.js?v={$_v}"];
|
||||||
include __DIR__ . '/../../views/layout_header.php';
|
include __DIR__ . '/../../views/layout_header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $pageTitle = 'User Activity';
|
|||||||
$activeNav = 'admin-user-activity';
|
$activeNav = 'admin-user-activity';
|
||||||
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
||||||
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
||||||
$pageScripts = ['/assets/js/keyboard-shortcuts.js'];
|
$pageScripts = ["/assets/js/keyboard-shortcuts.js?v={$_v}"];
|
||||||
include __DIR__ . '/../../views/layout_header.php';
|
include __DIR__ . '/../../views/layout_header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $pageTitle = 'Workflow Designer';
|
|||||||
$activeNav = 'admin-workflow';
|
$activeNav = 'admin-workflow';
|
||||||
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
$_v = $GLOBALS['config']['ASSET_VERSION'] ?? '1';
|
||||||
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
$pageStyles = ["/assets/css/dashboard.css?v={$_v}"];
|
||||||
$pageScripts = ['/assets/js/keyboard-shortcuts.js'];
|
$pageScripts = ["/assets/js/keyboard-shortcuts.js?v={$_v}"];
|
||||||
include __DIR__ . '/../../views/layout_header.php';
|
include __DIR__ . '/../../views/layout_header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user