d
This commit is contained in:
parent
7d1931a5ce
commit
e63210de27
@ -63,6 +63,12 @@ define(["jquery"], function ($) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function check_scroll(){
|
function check_scroll(){
|
||||||
|
//
|
||||||
|
$("#hc_table thead.table").find('tr').first().children().each(function(i, e){
|
||||||
|
$($("#hc_table thead.fixed").find('tr').children()[i]).width($(e).width());
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// make sure the left/right buttons are hidden if already at far left/right
|
// make sure the left/right buttons are hidden if already at far left/right
|
||||||
var sl=$("#table_container").scrollLeft();
|
var sl=$("#table_container").scrollLeft();
|
||||||
var sl_max = $("#hc_table").outerWidth() - $("#table_container").width();
|
var sl_max = $("#hc_table").outerWidth() - $("#table_container").width();
|
||||||
@ -188,12 +194,10 @@ function draw_table(){
|
|||||||
// display the table
|
// display the table
|
||||||
$("#table_container").append(table);
|
$("#table_container").append(table);
|
||||||
|
|
||||||
//clon the thead
|
//clone the thead
|
||||||
var org_thead=$("#hc_table thead");
|
var org_thead=$("#hc_table thead");
|
||||||
org_thead.clone().attr('id','floater').css('position','fixed').prependTo("#hc_table");
|
org_thead.clone().attr('class','fixed').css('position','fixed').prependTo("#hc_table");
|
||||||
org_thead.find('tr').first().children().each(function(i, e){
|
org_thead.attr('class','table');
|
||||||
$($("#hc_table thead#floater").find('tr').children()[i]).width($(e).width());
|
|
||||||
});
|
|
||||||
|
|
||||||
//enable highlighting
|
//enable highlighting
|
||||||
$("#hc_table td").on("mouseover", function() {
|
$("#hc_table td").on("mouseover", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user