Uncomment table control creation logic to ensure selectable tables have row-selection controls
This commit is contained in:
+5
-5
@@ -376,11 +376,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//// Create controls for any table that looks selectable but lacks a control block
|
//// Create controls for any table that looks selectable but lacks a control block
|
||||||
//Array.from(document.querySelectorAll('table')).forEach(function(t){
|
Array.from(document.querySelectorAll('table')).forEach(function(t){
|
||||||
// if (t.querySelector && (t.querySelector('input[name="selection"]') || t.querySelector('input[type="checkbox"]'))) {
|
if (t.querySelector && (t.querySelector('input[name="selection"]') || t.querySelector('input[type="checkbox"]'))) {
|
||||||
// ensureControlsForTable(t);
|
ensureControlsForTable(t);
|
||||||
// }
|
}
|
||||||
//});
|
});
|
||||||
|
|
||||||
// For every toggle button (supports both unsuffixed and suffixed IDs)
|
// For every toggle button (supports both unsuffixed and suffixed IDs)
|
||||||
document.querySelectorAll('button[id^="toggle-row-selection"]').forEach(function(toggleBtn) {
|
document.querySelectorAll('button[id^="toggle-row-selection"]').forEach(function(toggleBtn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user