This commit is contained in:
James 2020-03-29 10:24:24 +01:00
parent b2a89015b3
commit 7d1931a5ce

View File

@ -188,7 +188,12 @@ function draw_table(){
// display the table
$("#table_container").append(table);
$("#hc_table thead").clone().css('position','fixed').prependTo("#hc_table");
//clon the thead
var org_thead=$("#hc_table thead");
org_thead.clone().attr('id','floater').css('position','fixed').prependTo("#hc_table");
org_thead.find('tr').first().children().each(function(i, e){
$($("#hc_table thead#floater").find('tr').children()[i]).width($(e).width());
});
//enable highlighting
$("#hc_table td").on("mouseover", function() {