From 40ee04f43e791fc024963ff178211761ec8c86e9 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 2 Aug 2016 12:32:57 +0200 Subject: [PATCH] Avoid collision of template ids for mail splitter templates --- mail/inc/class.mail_ui.inc.php | 4 ++-- mail/js/app.js | 2 +- mail/templates/default/index.xet | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 94d84df3bb..e09ffa38d9 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -589,8 +589,8 @@ class mail_ui self::callWizard($e->getMessage().($e->details?', '.$e->details:''),(isset($this->mail_bo)?false:true), 'error',false); //return false; } - // Check preview pane is enabled, then show spliter - if ($this->mail_bo->mailPreferences['previewPane']) $etpl->setElementAttribute('mail.index.spliter', 'template', 'mail.index.nospliter'); + // Check preview pane is enabled, then show splitter + if ($this->mail_bo->mailPreferences['previewPane']) $etpl->setElementAttribute('splitter', 'template', 'mail.index.nosplitter'); return $etpl->exec('mail.mail_ui.index',$content,$sel_options,$readonlys,$preserv); } diff --git a/mail/js/app.js b/mail/js/app.js index fd45a74f64..13d5f3865c 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -3844,7 +3844,7 @@ app.classes.mail = AppJS.extend( */ loadIframe: function (_url, _iFrame) { - var mailSplitter = this.et2.getWidgetById('mail.index.spliter'); + var mailSplitter = this.et2.getWidgetById('splitter'); var quotaipercent = this.et2.getWidgetById('nm[quotainpercent]'); var iframe = _iFrame || this.et2.getWidgetById('extra_iframe'); if (typeof iframe != 'undefined' && iframe) diff --git a/mail/templates/default/index.xet b/mail/templates/default/index.xet index b0514f1696..7592623119 100644 --- a/mail/templates/default/index.xet +++ b/mail/templates/default/index.xet @@ -2,7 +2,7 @@ -