change sortHeader to include eid if it is in the request
This commit is contained in:
parent
3a142df14f
commit
df285006d2
|
@ -1472,7 +1472,14 @@ function getPagination( $pages, $page, $maxShortcuts, $query, $querySep='&'
|
|||
|
||||
function sortHeader( $field, $querySep='&' ) {
|
||||
global $view;
|
||||
return '?view='.$view.$querySep.'page=1'.$_REQUEST['filter']['query'].$querySep.'sort_field='.$field.$querySep.'sort_asc='.($_REQUEST['sort_field'] == $field?!$_REQUEST['sort_asc']:0).$querySep.'limit='.validInt($_REQUEST['limit']);
|
||||
return implode($querySep, array(
|
||||
'?view='.$view,
|
||||
'page=1'.$_REQUEST['filter']['query'],
|
||||
'sort_field='.$field,
|
||||
'sort_asc='.($_REQUEST['sort_field'] == $field ? !$_REQUEST['sort_asc'] : 0),
|
||||
'limit='.validInt($_REQUEST['limit']),
|
||||
($_REQUEST['eid'] ? 'eid='.$_REQUEST['eid'] : '' ),
|
||||
));
|
||||
}
|
||||
|
||||
function sortTag( $field ) {
|
||||
|
|
Loading…
Reference in New Issue