From b811c38087515c9c2a66c9cb0fe89081e93b0a24 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 29 Mar 2020 10:40:46 +0100 Subject: [PATCH] d --- heatcalc/heatcalc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/heatcalc/heatcalc.js b/heatcalc/heatcalc.js index aae93f5..47df3b6 100644 --- a/heatcalc/heatcalc.js +++ b/heatcalc/heatcalc.js @@ -64,11 +64,11 @@ define(["jquery"], function ($) { function check_scroll(){ // - $("#hc_table thead.table").find('tr')[0].children().each(function(i, e){ - $($("#hc_table thead.fixed").find('tr')[0].children()[i]).css('display','block').width($(e).width()); + $("#hc_table thead.table").find('tr').eq(0).children().each(function(i, e){ + $($("#hc_table thead.fixed").find('tr').eq(0).children()[i]).css('display','block').width($(e).width()); }); - $("#hc_table thead.table").find('tr')[1].children().each(function(i, e){ - $($("#hc_table thead.fixed").find('tr')[1].children()[i]).css('display','block').width($(e).width()); + $("#hc_table thead.table").find('tr').eq(1).children().each(function(i, e){ + $($("#hc_table thead.fixed").find('tr').eq(1).children()[i]).css('display','block').width($(e).width()); }); // make sure the left/right buttons are hidden if already at far left/right