mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 20:49:08 +01:00
classes for filterheaders and fixed the way the *active_sortcolum class is applied
This commit is contained in:
parent
241c1d04cd
commit
9cbbf9bef9
@ -127,17 +127,20 @@
|
|||||||
if ($this->last_part($name) == $nm_global['order']) // we're the active column
|
if ($this->last_part($name) == $nm_global['order']) // we're the active column
|
||||||
{
|
{
|
||||||
$cell[1] = $cell;
|
$cell[1] = $cell;
|
||||||
$cell[1]['span'] .= ',activ_sortcolumn';
|
|
||||||
unset($cell[1]['align']);
|
unset($cell[1]['align']);
|
||||||
$cell[2] = $tmpl->empty_cell('image',$nm_global['sort'] != 'DESC' ? 'down' : 'up');
|
$cell[2] = $tmpl->empty_cell('image',$nm_global['sort'] != 'DESC' ? 'down' : 'up');
|
||||||
$cell['type'] = 'hbox';
|
$cell['type'] = 'hbox';
|
||||||
$cell['size'] = '2,0,0';
|
$cell['size'] = '2,0,0';
|
||||||
|
$class = 'activ_sortcolumn';
|
||||||
$cell['name'] = $cell['label'] = '';
|
$cell['name'] = $cell['label'] = '';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$cell['span'] .= ',inactiv_sortcolumn';
|
$class = 'inactiv_sortcolumn';
|
||||||
}
|
}
|
||||||
|
$parts = explode(',',$cell['span']);
|
||||||
|
$parts[1] .= ($parts[1] ? ' ' : '').$class;
|
||||||
|
$cell['span'] = implode(',',$parts);
|
||||||
return True;
|
return True;
|
||||||
|
|
||||||
case 'nextmatch-accountfilter': // Option: as for selectbox: [extra-label(default ALL)[,#lines(default 1)]]
|
case 'nextmatch-accountfilter': // Option: as for selectbox: [extra-label(default ALL)[,#lines(default 1)]]
|
||||||
@ -158,6 +161,9 @@
|
|||||||
$cell['help'] = 'select which values to show';
|
$cell['help'] = 'select which values to show';
|
||||||
}
|
}
|
||||||
$cell['onchange'] = $cell['noprint'] = True;
|
$cell['onchange'] = $cell['noprint'] = True;
|
||||||
|
$parts = explode(',',$cell['span']);
|
||||||
|
$parts[1] .= ($parts[1] ? ' ' : '').'filterheader';
|
||||||
|
$cell['span'] = implode(',',$parts);
|
||||||
$extension_data['old_value'] = $value = $nm_global['col_filter'][$this->last_part($name)];
|
$extension_data['old_value'] = $value = $nm_global['col_filter'][$this->last_part($name)];
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user