Skip to content
Snippets Groups Projects
Commit b31bc48d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #100612 by Gerhard: can't add class to table header cells.

parent 5e70fc97
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment