aboutsummaryrefslogtreecommitdiff
path: root/uploader/static/js/populations.js
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-10 12:36:08 -0500
committerFrederick Muriuki Muriithi2025-03-10 12:44:29 -0500
commit28c9447fb51fc764143b5add664e8f4b892a703d (patch)
tree9ccd74f92c5d416396221072048be3b41a91d8cc /uploader/static/js/populations.js
parentc6cf301278f1c1bc530d139d134e3c766aa10a3f (diff)
downloadgn-uploader-28c9447fb51fc764143b5add664e8f4b892a703d.tar.gz
Update how the DataTables handlers are set up.
Diffstat (limited to 'uploader/static/js/populations.js')
-rw-r--r--uploader/static/js/populations.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/uploader/static/js/populations.js b/uploader/static/js/populations.js
index ded9b10..d4980db 100644
--- a/uploader/static/js/populations.js
+++ b/uploader/static/js/populations.js
@@ -18,7 +18,8 @@ var populationDataTable = (populationdata) => {
data: (apopulation) => {
return `<input type="radio" name="population_id"`
+ `id="rdo_population_id_${apopulation.InbredSetId}" `
- + `value="${apopulation.InbredSetId}">`;
+ + `value="${apopulation.InbredSetId}" `
+ + `class="chk-row-select">`;
}
},
{
@@ -35,6 +36,7 @@ var populationDataTable = (populationdata) => {
$(() => {
+ dtAddCommonHandlers("#tbl-select-population");
populationDataTable(JSON.parse(
$("#tbl-select-population").attr("data-populations-list")));
});