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.
parent
a35ff36673
commit
ea17f39811
|
@ -112,8 +112,13 @@ function tablesort_header($cell, $header, $ts) {
|
||||||
function tablesort_cell($cell, $header, $ts, $i) {
|
function tablesort_cell($cell, $header, $ts, $i) {
|
||||||
if ($header[$i]['data'] == $ts['name'] && $header[$i]['field']) {
|
if ($header[$i]['data'] == $ts['name'] && $header[$i]['field']) {
|
||||||
if (is_array($cell)) {
|
if (is_array($cell)) {
|
||||||
|
if (isset($cell['class'])) {
|
||||||
$cell['class'] .= ' active';
|
$cell['class'] .= ' active';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$cell['class'] = 'active';
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$cell = array('data' => $cell, 'class' => 'active');
|
$cell = array('data' => $cell, 'class' => 'active');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue