mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Api: Clear sorting with 'No filters' favorite
This commit is contained in:
parent
09c0d12f0e
commit
9bc4c41941
@ -280,6 +280,10 @@ var EgwApp = /** @class */ (function () {
|
||||
if (state.state && state.state.sort && state.state.sort.id) {
|
||||
_widget.sortBy(state.state.sort.id, state.state.sort.asc, false);
|
||||
}
|
||||
else {
|
||||
// Not using resetSort() to avoid the extra applyFilters() call
|
||||
_widget.sortBy(undefined, undefined, false);
|
||||
}
|
||||
if (state.state && state.state.selectcols) {
|
||||
// Make sure it's a real array, not an object, then set cols
|
||||
_widget.set_columns(jQuery.extend([], state.state.selectcols));
|
||||
|
@ -400,6 +400,11 @@ export abstract class EgwApp
|
||||
{
|
||||
_widget.sortBy(state.state.sort.id, state.state.sort.asc,false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Not using resetSort() to avoid the extra applyFilters() call
|
||||
_widget.sortBy(undefined,undefined,false);
|
||||
}
|
||||
if(state.state && state.state.selectcols)
|
||||
{
|
||||
// Make sure it's a real array, not an object, then set cols
|
||||
|
Loading…
Reference in New Issue
Block a user