Since we're changing dataset, force a reset() to clear cache and stuff.

This commit is contained in:
Nathan Gray 2013-12-09 21:44:50 +00:00
parent 735a1afa43
commit 3f531a29c0

View File

@ -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();