aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-01-19 21:01:54 +0000
committerzsloan2022-01-27 13:45:09 -0600
commit43706c381ed211ff92338be689a7d32c010dcf70 (patch)
treeaedc7562dac934fb00ea0e317d762dca2369260f /wqflask
parent07412521f896a609ae0011bc0a5ac0adf252b637 (diff)
downloadgenenetwork2-43706c381ed211ff92338be689a7d32c010dcf70.tar.gz
Changed search result index column to be static (so it doesn't change when the user sorts)
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/search_result_page.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/search_result_page.html b/wqflask/wqflask/templates/search_result_page.html
index fb335fd3..56ac6e82 100644
--- a/wqflask/wqflask/templates/search_result_page.html
+++ b/wqflask/wqflask/templates/search_result_page.html
@@ -195,6 +195,8 @@
'title': "Index",
'type': "natural",
'width': "35px",
+ "searchable": false,
+ "orderable": false,
'targets': 1,
'data': "index"
}
@@ -491,6 +493,12 @@
}
}
+ trait_table.on( 'order.dt search.dt', function () {
+ trait_table.column(1, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
+ cell.innerHTML = i+1;
+ } );
+ } ).draw();
+
window.addEventListener('resize', function(){
trait_table.columns.adjust();
});