diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-10-15 22:16:00 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-10-15 22:16:00 +0000 |
commit | ea17f398117dff7ff682d06b3a819518f4c98fdb (patch) | |
tree | b74820868806d0fe1ef9343122cc91ba6350c31a | |
parent | a35ff36673ed392b0c753b7298cf4dd3b39f06dc (diff) | |
download | brdo-ea17f398117dff7ff682d06b3a819518f4c98fdb.tar.gz brdo-ea17f398117dff7ff682d06b3a819518f4c98fdb.tar.bz2 |
Tablesort used to output class=" active" for active columns with other properties (align="right"). Now it correctly uses class="foo active" if a class 'foo' was specified, and class="active" otherwise.
-rw-r--r-- | includes/tablesort.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc index d41c3aab3..43edc5fc3 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -112,7 +112,12 @@ function tablesort_header($cell, $header, $ts) { function tablesort_cell($cell, $header, $ts, $i) { if ($header[$i]['data'] == $ts['name'] && $header[$i]['field']) { if (is_array($cell)) { - $cell['class'] .= ' active'; + if (isset($cell['class'])) { + $cell['class'] .= ' active'; + } + else { + $cell['class'] = 'active'; + } } else { $cell = array('data' => $cell, 'class' => 'active'); |