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.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index 6b35f6a..306dcce 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -89,7 +89,12 @@
{%block javascript%}
<script type="text/javascript">
$(function() {
+ var species_id = {{species.SpeciesId}};
+ var population_id = {{population.Id}};
+ var dataset_id = {{dataset.Id}};
+ var dataset_name = "{{dataset.Name}}";
var data = {{phenotypes | tojson}};
+
var dtPhenotypesList = buildDataTable(
"#tbl-phenotypes-list",
data,
@@ -127,17 +132,14 @@
],
{
select: "multi+shift",
- scrollY: "1000px",
layout: {
- top1: "search",
- topStart: {
- buttons: [
- {extend: "selectAll", className: "btn btn-info"},
- {extend: "selectNone", className: "btn btn-info"}
- ]
+ top1Start: {
+ pageLength: {
+ text: "Show _MENU_ of _TOTAL_"
+ }
},
- topEnd: "info",
- bottomEnd: null
+ topStart: "info",
+ top1End: null
},
rowId: function(pheno) {
return `${pheno.InbredSetCode}_${pheno.xref_id}`;