aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-03-04 22:02:51 +0000
committerzsloan2021-03-04 22:02:51 +0000
commit6b0f4e959362643df91221cf2f0a9efe2eb4dd70 (patch)
tree225c515d6bda43cdcd934b885f9242736cc07c3e
parentdffcbc4d0c7370492ff976dae5f21bd06a621bc3 (diff)
downloadgenenetwork2-6b0f4e959362643df91221cf2f0a9efe2eb4dd70.tar.gz
Fixed issue that caused JS to break when trait description contains a newline character
-rw-r--r--wqflask/wqflask/templates/mapping_results.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/mapping_results.html b/wqflask/wqflask/templates/mapping_results.html
index c673ce51..c08b21ef 100644
--- a/wqflask/wqflask/templates/mapping_results.html
+++ b/wqflask/wqflask/templates/mapping_results.html
@@ -372,6 +372,7 @@
<script type="text/javascript" charset="utf-8">
$(document).ready( function () {
console.time("Creating table");
+
{% if selectedChr == -1 %}
$('#trait_table').DataTable( {
"drawCallback": function( settings ) {
@@ -526,7 +527,7 @@
perm_data: js_data.perm_results,
num_perm: "{{ nperm }}",
trait_name: "{{ this_trait.display_name }}",
- trait_description: "{{ this_trait.description_display }}",
+ trait_description: `{{ this_trait.description_display }}`,
cofactors: "{{ covariates }}",
n_samples: {{ n_samples }},
n_genotypes: {{ qtl_results|length }},