summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-04-07 03:03:40 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-04-07 03:03:40 +0000
commitbf923ed908b96b41a17231f3b6d578b5b4940ef4 (patch)
treef7e099b1f87efb28eb5dfb8bb0326e7812bfd22f /misc
parentb0676cf351ccb48e7d2cf1d93d5728f3e834886a (diff)
downloadbrdo-bf923ed908b96b41a17231f3b6d578b5b4940ef4.tar.gz
brdo-bf923ed908b96b41a17231f3b6d578b5b4940ef4.tar.bz2
Slightly tweak the JS timing for sticky tableheader resizing.
Diffstat (limited to 'misc')
-rw-r--r--misc/tableheader.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/tableheader.js b/misc/tableheader.js
index 97b57ec60..470d890cf 100644
--- a/misc/tableheader.js
+++ b/misc/tableheader.js
@@ -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);