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
|
||||
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') {
|
||||
const priorityIndicator = document.querySelector('.priority-indicator');
|
||||
if (priorityIndicator) {
|
||||
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);
|
||||
}
|
||||
const ticketFrame = document.querySelector('.lt-frame-ticket');
|
||||
if (ticketFrame) ticketFrame.setAttribute('data-priority', newValue);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user