multi value filtering added and font color fix for duplicates

This commit is contained in:
2026-08-11 23:28:35 +02:00
parent 5594431749
commit e0175ab48a
340 changed files with 739 additions and 160 deletions
Regular → Executable
+7 -1
View File
@@ -24,7 +24,7 @@
}
function filterControls(table) {
return [...table.querySelectorAll('thead input, thead select')].filter(control => {
return [...table.querySelectorAll('thead input, thead select, thead textarea')].filter(control => {
const type = (control.type || '').toLowerCase();
return !['checkbox', 'radio', 'button', 'submit'].includes(type);
});
@@ -44,6 +44,12 @@
try { state = JSON.parse(api.get(key) || 'null'); } catch (_) {}
if (state?.field && (state.direction === 'asc' || state.direction === 'desc')) {
table.assetApplySort(state.field, state.direction, {silent: true});
} else if (table.dataset.defaultSortField) {
table.assetApplySort(
table.dataset.defaultSortField,
table.dataset.defaultSortDirection === 'desc' ? 'desc' : 'asc',
{silent: true}
);
} else {
table.assetUpdateRowNumbers?.();
}