From d3669e83165b1566bd3129fff3648449786bc5f2 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 3 Nov 2025 15:54:15 +0000 Subject: [PATCH] Uncomment table control creation logic to ensure selectable tables have row-selection controls --- templates/base.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/base.html b/templates/base.html index c4a64c89..ea114b72 100644 --- a/templates/base.html +++ b/templates/base.html @@ -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) {