diff options
| author | Frederick Muriuki Muriithi | 2026-01-26 12:13:41 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-01-26 12:45:10 -0600 |
| commit | 8bfc210f23b25431d7476cc4fcabbf52a46748c7 (patch) | |
| tree | b8db672da47d9beb4b89bf54e596bc3ad73ec015 /uploader/templates | |
| parent | 98941130faad30baff70f863efd4b0e6e51d26d4 (diff) | |
| download | gn-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')
| -rw-r--r-- | uploader/templates/phenotypes/confirm-delete-phenotypes.html | 3 |
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); }); } }); |
