summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-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) {