Uncomment table control creation logic to ensure selectable tables have row-selection controls

This commit is contained in:
Ross
2025-11-03 15:54:15 +00:00
parent b92a969a3b
commit d3669e8316
+5 -5
View File
@@ -376,11 +376,11 @@ document.addEventListener('DOMContentLoaded', function() {
}
//// Create controls for any table that looks selectable but lacks a control block
//Array.from(document.querySelectorAll('table')).forEach(function(t){
// if (t.querySelector && (t.querySelector('input[name="selection"]') || t.querySelector('input[type="checkbox"]'))) {
// ensureControlsForTable(t);
// }
//});
Array.from(document.querySelectorAll('table')).forEach(function(t){
if (t.querySelector && (t.querySelector('input[name="selection"]') || t.querySelector('input[type="checkbox"]'))) {
ensureControlsForTable(t);
}
});
// For every toggle button (supports both unsuffixed and suffixed IDs)
document.querySelectorAll('button[id^="toggle-row-selection"]').forEach(function(toggleBtn) {