From b12ac790608473c56acdb7a8a46c9046f29ce269 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 5 Aug 2015 10:48:34 +0000 Subject: [PATCH] Mail tree phase2 W.I.P.: Open tree when changing profile --- mail/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index cc50cdfc2d..a7a7e34836 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1736,7 +1736,10 @@ app.classes.mail = AppJS.extend( } // alert(folder); this.egw.message(this.egw.lang('Connect to Profile %1',_widget.getSelectedLabel().replace(this._unseen_regexp, ''))); - + + //Open unloaded tree to get loaded + _widget.openItem(folder, true); + this.lock_tree(); egw.json('mail_ui::ajax_changeProfile',[folder, getFolders, this.et2._inst.etemplate_exec_id], jQuery.proxy(function() { // Profile changed, select inbox