summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-02-06 08:35:13 +0000
committerDries Buytaert <dries@buytaert.net>2007-02-06 08:35:13 +0000
commitf996fd9568dd2dd09c01740885fea85f77a9ce8b (patch)
tree762695a08284d407c98914fb12308d863875ddd2 /includes
parent018bd034c8787ff981cf54c4733b81e364cb92f0 (diff)
downloadbrdo-f996fd9568dd2dd09c01740885fea85f77a9ce8b.tar.gz
brdo-f996fd9568dd2dd09c01740885fea85f77a9ce8b.tar.bz2
- Patch #112605 by Steven: sticky table headers.
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index a829b2cca..de1be95dd 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -761,6 +761,9 @@ function theme_table($header, $rows, $attributes = array(), $caption = NULL) {
// Format the table header:
if (count($header)) {
+ // Include JS for sticky headers.
+ drupal_add_js('misc/tableheader.js');
+
$ts = tablesort_init($header);
$output .= ' <thead><tr>';
foreach ($header as $cell) {