summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-15 20:50:48 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-15 20:50:48 +0000
commitf70b6182e136a66039711f6a452fd582698f3dd9 (patch)
treed22c292f4de01c531966cfbe925c2360eb3ad9af /modules
parent9dd2ce283e60b066386be6d799eded5c72d0139f (diff)
downloadbrdo-f70b6182e136a66039711f6a452fd582698f3dd9.tar.gz
brdo-f70b6182e136a66039711f6a452fd582698f3dd9.tar.bz2
- Patch #520368 by Gábor Hojtsy: fixed Admin toolbar breaks sticky table headers.
Diffstat (limited to 'modules')
-rw-r--r--modules/toolbar/toolbar.js4
-rw-r--r--modules/toolbar/toolbar.module4
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/toolbar/toolbar.js b/modules/toolbar/toolbar.js
index c2653d91a..50a60a796 100644
--- a/modules/toolbar/toolbar.js
+++ b/modules/toolbar/toolbar.js
@@ -80,4 +80,8 @@ Drupal.admin.toolbar.toggle = function() {
}
}
+Drupal.admin.toolbar.height = function() {
+ return $("#toolbar").height();
+}
+
})(jQuery);
diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module
index 6b931632a..f883588f0 100644
--- a/modules/toolbar/toolbar.module
+++ b/modules/toolbar/toolbar.module
@@ -65,6 +65,10 @@ function toolbar_build() {
'js' => array(
$module_path . '/toolbar.js',
array('data' => 'misc/jquery.cookie.js', 'weight' => JS_LIBRARY + 2),
+ array(
+ 'data' => array('tableHeaderOffset' => 'Drupal.admin.toolbar.height'),
+ 'type' => 'setting'
+ ),
),
'css' => array(
$module_path . '/toolbar.css',