Slightly tweak the JS timing for sticky tableheader resizing.

6.x
Steven Wittens 2007-04-07 03:03:40 +00:00
parent b0676cf351
commit bf923ed908
1 changed files with 4 additions and 2 deletions

View File

@ -79,8 +79,7 @@ if (Drupal.jsEnabled) {
var resize = function () {
// Ensure minimum time between adjustments.
if (time) {
clearTimeout(time);
time = null;
return;
}
time = setTimeout(function () {
@ -103,6 +102,9 @@ if (Drupal.jsEnabled) {
$(this).css('width', parseInt($(ref).width())
- parseInt($(this).css('paddingLeft')) +'px');
});
// Reset timer
time = null;
}, 250);
};
$(window).resize(resize);