aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-04-21 18:44:57 +0000
committerzsloan2022-04-21 18:44:57 +0000
commitd9bd1530aa2f46c5f54ea1ec80e56ad2c6ad6efb (patch)
treec31c0a1918d7effcf7447c1345f169bbde90b1da /wqflask
parentc2f620ed1103527a547d3ae69fa10acedea7ab66 (diff)
downloadgenenetwork2-d9bd1530aa2f46c5f54ea1ec80e56ad2c6ad6efb.tar.gz
Fix issue with collection page export
There were some extra spaces/newline characters in the checkbox table cell that were causing the javascript fetching trait info to not work correctly (it was trying to select the first item in the table cell, which in this case was the space/newline characters instead of the checkbox itself). Removing those characters seem to fix the export.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/collections/view.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index 6f1a9680..170a2d96 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -112,13 +112,12 @@
<tbody>
{% for this_trait in trait_obs %}
<TR id="trait:{{ this_trait.name }}:{{ this_trait.dataset.name }}">
- <TD align="center" style="padding: 0px;">
- <input type="checkbox"
- name="searchResult"
- class="checkbox trait_checkbox"
- value="{{data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name))}}"
- data-trait-info="{{trait_info_str(this_trait)}}">
- </TD>
+ <TD align="center" style="padding: 0px;"><input type="checkbox"
+ name="searchResult"
+ class="checkbox trait_checkbox"
+ value="{{data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name))}}"
+ data-trait-info="{{trait_info_str(this_trait)}}">
+ </TD>
<TD data-export="{{ loop.index }}" align="right">{{ loop.index }}</TD>
<TD title="{{ this_trait.dataset.fullname }}" data-export="{{ this_trait.dataset.fullname }}">{{ this_trait.dataset.fullname }}</TD>
<TD data-export="{{ this_trait.name }}">