aboutsummaryrefslogtreecommitdiff
path: root/uploader/static/js/populations.js
blob: 73e298a40ddc7a913aac90796b77de56e0c1153d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$(() => {
    dtAddCommonHandlers("#tbl-select-population");
    var populationsDataTable = buildDataTable(
        "#tbl-select-population",
        JSON.parse(
            $("#tbl-select-population").attr("data-populations-list")),
        [
            {
                data: (apopulation) => {
                    return `<input type="radio" name="population_id"`
                        + `id="rdo_population_id_${apopulation.InbredSetId}" `
                        + `value="${apopulation.InbredSetId}" `
                        + `class="chk-row-select">`;
                }
            },
            {
                data: (apopulation) => {
                    return `${apopulation.FullName} (${apopulation.InbredSetName})`;
                }
            }
        ]);
});