aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-06-23 18:55:15 +0000
committerzsloan2022-06-23 18:55:15 +0000
commitdf02c35cc781c58e169c3574d78e00d1fea499f4 (patch)
treed5ccab353cf488724da6c0016e86e04fc9e607ff
parentb1decd7288bb969d827ee04701df00e539935560 (diff)
downloadgenenetwork2-df02c35cc781c58e169c3574d78e00d1fea499f4.tar.gz
Pass table data to collections/view template and create_table.js
-rw-r--r--wqflask/wqflask/templates/collections/view.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index 3ebee77c..6d0e3edd 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -188,8 +188,9 @@
<script type="text/javascript"
src="/static/new/javascript/partial_correlations.js"></script>
-
-
+ <script type='text/javascript'>
+ var traits_json = {{ traits_json|safe }};
+ </script>
<script language="javascript" type="text/javascript">
$(document).ready( function () {
@@ -217,7 +218,7 @@
"order": [[1, "asc" ]]
}
- create_table(table_id, column_defs, table_settings)
+ create_table(table_id, traits_json, column_defs, table_settings)
submit_special = function(url) {
$("#collection_form").attr("action", url);