From 8bfc210f23b25431d7476cc4fcabbf52a46748c7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 26 Jan 2026 12:13:41 -0600 Subject: Bug: DataTables: Check both radio buttons and checkboxes. Extract logic for checking/unchecking a datatable's row's checkbox or radio button as relevant, into a new function. Use new function instead of multiple copies of the logic. --- uploader/templates/phenotypes/confirm-delete-phenotypes.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'uploader/templates') diff --git a/uploader/templates/phenotypes/confirm-delete-phenotypes.html b/uploader/templates/phenotypes/confirm-delete-phenotypes.html index 36cab2c..efce397 100644 --- a/uploader/templates/phenotypes/confirm-delete-phenotypes.html +++ b/uploader/templates/phenotypes/confirm-delete-phenotypes.html @@ -89,8 +89,7 @@ var api = this.api(); api.rows().select(); api.rows({selected: true}).nodes().each((node, index) => { - $(node).find('input[type="checkbox"]:not(:checked)') - .prop("checked", true); + setRowChecked(node); }); } }); -- cgit 1.4.1