aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/view-dataset.html
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates/phenotypes/view-dataset.html')
-rw-r--r--uploader/templates/phenotypes/view-dataset.html22
1 files changed, 1 insertions, 21 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index f171483..3ab8004 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -65,11 +65,7 @@
<div class="row">
- <div style="padding-bottom: 0.5em;">
- <a href="#" class="btn btn-info" id="btn-phenotypes-list-select-all">select all</a>
- <a href="#" class="btn btn-info" id="btn-phenotypes-list-deselect-all">deselect all</a>
- <a href="#" class="btn btn-info" id="btn-phenotypes-list-edit">edit</a>
- </div>
+
<table id="tbl-phenotypes-list" class="table compact stripe cell-border">
<thead>
<tr>
@@ -93,8 +89,6 @@
{%block javascript%}
<script type="text/javascript">
$(function() {
- dtAddCommonHandlers("#tbl-phenotypes-list");
-
var data = {{phenotypes | tojson}};
var dtPhenotypesList = buildDataTable(
"#tbl-phenotypes-list",
@@ -137,20 +131,6 @@
return `${pheno.InbredSetCode}_${pheno.xref_id}`;
}
});
-
- $("#btn-phenotypes-list-select-all").on("click", (event) => {
- dtPhenotypesList.rows().select();
- dtPhenotypesList.rows().nodes().each((node, idx) => {
- $(node).find(".chk-row-select").prop("checked", true);
- });
- });
-
- $("#btn-phenotypes-list-deselect-all").on("click", (event) => {
- dtPhenotypesList.rows().deselect();
- dtPhenotypesList.rows().nodes().each((node, idx) => {
- $(node).find(".chk-row-select").prop("checked", false);
- });
- });
});
</script>
{%endblock%}