aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
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();
});