From 95d6f9e58739ae818c566da9e5ee696c2e2cb493 Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Thu, 6 Mar 2014 10:21:22 +0100 Subject: [PATCH] * Fixed Error preventing reload of templates after save --- com_zimbra_emailtemplates/emailtemplates.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/com_zimbra_emailtemplates/emailtemplates.js b/com_zimbra_emailtemplates/emailtemplates.js index bb9a116..3fc5513 100755 --- a/com_zimbra_emailtemplates/emailtemplates.js +++ b/com_zimbra_emailtemplates/emailtemplates.js @@ -597,14 +597,17 @@ function () { } + // Move mail to template folder and reload templates afterwards + msg.move( - appCtxt.getFolderTree().getByPath(folder).id + appCtxt.getFolderTree().getByPath(folder).id, + new AjxCallback( + this, + this._getRecentEmails, + [] + ) ); - // Reload templates after saving a new one - - this._getRecentEmails(); - var dlg = appCtxt.getMsgDialog(); dlg.setMessage( this.getMessage("EmailTemplatesZimlet_saved"),