summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-12-01 08:50:33 +0000
committerDries Buytaert <dries@buytaert.net>2006-12-01 08:50:33 +0000
commitb31bc48d85e7a4829a17d0cbd6ef5347ec939c66 (patch)
treeec78b070d5f422f1888e6e8a9be347763dfa54db
parent5e70fc97ef829a5ca90c7c6e0cb6a4a7389c0336 (diff)
downloadbrdo-b31bc48d85e7a4829a17d0cbd6ef5347ec939c66.tar.gz
brdo-b31bc48d85e7a4829a17d0cbd6ef5347ec939c66.tar.bz2
- Patch #100612 by Gerhard: can't add class to table header cells.
-rw-r--r--includes/tablesort.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index eb1415615..f976eb512 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -66,7 +66,12 @@ function tablesort_header($cell, $header, $ts) {
$title = t('sort by @s', array('@s' => $cell['data']));
if ($cell['data'] == $ts['name']) {
$ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc');
- $cell['class'] = 'active';
+ if (isset($cell['class'])) {
+ $cell['class'] .= ' active';
+ }
+ else {
+ $cell['class'] = 'active';
+ }
$image = theme('tablesort_indicator', $ts['sort']);
}
else {