From 3f531a29c0984eeaad1a67665f0cda637bc366fb Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 9 Dec 2013 21:44:50 +0000 Subject: [PATCH] Since we're changing dataset, force a reset() to clear cache and stuff. --- mail/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index 12bcfe8ddd..400c9eacb6 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -997,6 +997,13 @@ app.classes.mail = AppJS.extend( */ mail_changeProfile: function(folder,_widget) { // alert(folder); + var nm = _widget.getRoot().getWidgetById(this.nm_index); + if(nm) + { + nm.activeFilters['selectedFolder'] = folder; + // Changing dataset entirely, force a reset + nm.controller.reset(); + } egw.json('mail.mail_ui.ajax_changeProfile',[folder]) .sendRequest(); this.mail_refreshMessageGrid();