From fc73c2622ab6a72ea0b1612a22db22f36d5eca0f Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Fri, 30 Aug 2024 15:26:10 +0200 Subject: [PATCH] =?UTF-8?q?[JENKINS-73669]=20don't=20change=20unrelated=20?= =?UTF-8?q?checkboxes=20in=20rowSelectionCont=E2=80=A6=20(#9648)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/main/resources/hudson/PluginManager/updates.jelly | 4 ++-- .../main/resources/lib/layout/rowSelectionController.jelly | 6 +++++- .../main/js/components/row-selection-controller/index.js | 5 ++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/core/src/main/resources/hudson/PluginManager/updates.jelly b/core/src/main/resources/hudson/PluginManager/updates.jelly index 2dd759d883cd..da79d1958cf9 100644 --- a/core/src/main/resources/hudson/PluginManager/updates.jelly +++ b/core/src/main/resources/hudson/PluginManager/updates.jelly @@ -69,7 +69,7 @@ THE SOFTWARE. - + diff --git a/war/src/main/js/components/row-selection-controller/index.js b/war/src/main/js/components/row-selection-controller/index.js index d4de91b89de4..31fa374ee2c3 100644 --- a/war/src/main/js/components/row-selection-controller/index.js +++ b/war/src/main/js/components/row-selection-controller/index.js @@ -4,7 +4,10 @@ const rowSelectionControllers = document.querySelectorAll( rowSelectionControllers.forEach((headerCheckbox) => { const table = headerCheckbox.closest(".jenkins-table"); - const tableCheckboxes = table.querySelectorAll("input[type='checkbox']"); + const checkboxClass = headerCheckbox.dataset.checkboxClass; + const tableCheckboxes = table.querySelectorAll( + `input[type='checkbox'].${checkboxClass}`, + ); const moreOptionsButton = table.querySelector( ".jenkins-table__checkbox-options", );