about summary refs log tree commit diff
path: root/uploader/templates/phenotypes/confirm-delete-phenotypes.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-01-26 12:13:41 -0600
committerFrederick Muriuki Muriithi2026-01-26 12:45:10 -0600
commit8bfc210f23b25431d7476cc4fcabbf52a46748c7 (patch)
treeb8db672da47d9beb4b89bf54e596bc3ad73ec015 /uploader/templates/phenotypes/confirm-delete-phenotypes.html
parent98941130faad30baff70f863efd4b0e6e51d26d4 (diff)
downloadgn-uploader-8bfc210f23b25431d7476cc4fcabbf52a46748c7.tar.gz
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.
Diffstat (limited to 'uploader/templates/phenotypes/confirm-delete-phenotypes.html')
-rw-r--r--uploader/templates/phenotypes/confirm-delete-phenotypes.html3
1 files changed, 1 insertions, 2 deletions
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);
                   });
               }
           });