aboutsummaryrefslogtreecommitdiff
path: root/uploader/static/js/populations.js
blob: be1231f81409d9cf3fba2f27092dbd1e0ee69958 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$(() => {
    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})`;
                }
            }
        ]);
});