aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-07-08 21:22:09 +0000
committerzsloan2021-07-08 21:22:09 +0000
commit2c638cd0eec9883902b363e2f24f8c3c2f7ceccb (patch)
treef3fcfdffc40b2026bf559083cb090fff96ead099
parent57144ae2a8b95608bee6ee4b86d55363fe02d52a (diff)
downloadgenenetwork2-2c638cd0eec9883902b363e2f24f8c3c2f7ceccb.tar.gz
Only use Scroller when there are more than 5 results, since it can cause issues if there are only a few rows and the window size is small
-rw-r--r--wqflask/wqflask/templates/search_result_page.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index 00b708ef..3e4928df 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -435,7 +435,9 @@
"bSortClasses": false,
"scrollY": "500px",
"scrollCollapse": true,
+ {% if trait_list|length > 5 %}
"scroller": true,
+ {% endif %}
"iDisplayLength": -1,
"initComplete": function (settings) {
//Add JQueryUI resizable functionality to each th in the ScrollHead table