From 0159f4187795484d6e805d2db752b816608ebb02 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 1 Oct 2014 15:41:50 +0000 Subject: [PATCH] Restore favorite's sort order along with filters --- phpgwapi/js/jsapi/app_base.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index 1ed8cf87dd..bec9849087 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -285,6 +285,10 @@ var AppJS = Class.extend( if(state.state && state.state.search) state.state.search = unescape(state.state.search); // Apply + if(state.state.sort && state.state.sort.id) + { + _widget.sortBy(state.state.sort.id, state.state.sort.asc,false); + } _widget.applyFilters(state.state || state.filter || {}); nextmatched = true; }, this, et2_nextmatch);