mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 21:09:13 +02:00
Add implicit preference to remember user's last sort order.
Sort stored in favorites override this when the favorite is used.
This commit is contained in:
@@ -4347,6 +4347,10 @@ export class et2_nextmatch_sortheader extends et2_nextmatch_header implements et
|
||||
{
|
||||
// Send default sort mode if not sorted, otherwise send undefined to calculate
|
||||
this.nextmatch.sortBy(this.id, this.sortmode == "none" ? !(this.options.sortmode.toUpperCase() == "DESC") : undefined);
|
||||
|
||||
// Update sort preference
|
||||
this.egw().set_preference(this.nextmatch._get_appname(), this.nextmatch.options.template + "_sort", this.nextmatch.activeFilters["sort"]);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user