aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-03-11 22:57:49 +0000
committerzsloan2021-06-18 19:31:27 +0000
commit8d0513d9c667f076bca1c54037bab740b04c1bbd (patch)
treef02e3d50ef1864e3d00ea1bb1d5735d47b6e903a /wqflask
parenta3d4cdd47ec843612c4e33a5c45db9e152bb81c6 (diff)
downloadgenenetwork2-8d0513d9c667f076bca1c54037bab740b04c1bbd.tar.gz
Added a parameter to prevent columnDefs from being overwritten on initial table generation + changed the default table width to 100%
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/search_result_page.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 2cf1856b..6321c687 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -125,8 +125,8 @@
{% endif %}
</div>
{% endif %}
- <div id="table_container" {% if dataset.type == 'ProbeSet' or dataset.type == 'Publish' %}{% endif %}>
- <table class="table-hover table-striped cell-border" id='trait_table' style="float: left;">
+ <div id="table_container">
+ <table class="table-hover table-striped cell-border" id='trait_table' style="float: left; max-width: 100%;">
<tbody>
<td colspan="100%" align="center"><br><b><font size="15">Loading...</font></b><br></td>
</tbody>
@@ -337,11 +337,13 @@
}{% endif %}
];
- loadDataTable();
+ loadDataTable(true);
- function loadDataTable(){
+ function loadDataTable(first_run=false){
- setUserColumnsDefWidths();
+ if (!first_run){
+ setUserColumnsDefWidths();
+ }
//ZS: Need to make sort by symbol, also need to make sure blank symbol fields at the bottom and symbols starting with numbers below letters
trait_table = $('#' + tableId).DataTable( {