diff options
author | zsloan | 2021-03-11 22:57:49 +0000 |
---|---|---|
committer | zsloan | 2021-03-11 22:57:49 +0000 |
commit | 8d727b8de708e48b298f42c673f8e902ac3df6a4 (patch) | |
tree | e2f80e954b48a884c1fb969fa914c3c98bea45a4 /wqflask | |
parent | c03dded58477b48ce54a8a03da90aae45a256758 (diff) | |
download | genenetwork2-8d727b8de708e48b298f42c673f8e902ac3df6a4.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.html | 12 |
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 210cef30..973e9c23 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( { |