summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-30 17:37:08 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-30 17:37:08 +0000
commite362dd9b071c5c2ff3ffeee8d1f89c3003612920 (patch)
tree7dac18b4d7f21b447a301b4a36f2829bccf6df53 /misc
parent7ab90f3bd55c9c472e1da4389831e8f0d1dcfe42 (diff)
downloadbrdo-e362dd9b071c5c2ff3ffeee8d1f89c3003612920.tar.gz
brdo-e362dd9b071c5c2ff3ffeee8d1f89c3003612920.tar.bz2
#134307 by dww, Stefan Nantegaal and dvessel: fix table headers interaction with Safari, so the fieldset contents will not disappear
Diffstat (limited to 'misc')
-rw-r--r--misc/tableheader.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/misc/tableheader.js b/misc/tableheader.js
index 80d1fbdde..cd6a6634d 100644
--- a/misc/tableheader.js
+++ b/misc/tableheader.js
@@ -42,8 +42,7 @@ Drupal.behaviors.tableHeader = function (context) {
ref = table;
div.wide = true;
}
- $(div).css('width', parseInt($(ref).width())
- - parseInt($(div).css('paddingLeft')) +'px');
+ $(div).css('width', $(ref).width() - parseInt($(div).css('paddingLeft')) +'px');
// Get position and store.
div.cell = this;
@@ -96,8 +95,7 @@ Drupal.behaviors.tableHeader = function (context) {
// Resize the first cell to fit the table.
ref = this.table;
}
- $(this).css('width', parseInt($(ref).width())
- - parseInt($(this).css('paddingLeft')) +'px');
+ $(this).css('width', $(ref).width() - parseInt($(this).css('paddingLeft')) +'px');
});
// Reset timer