summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-17 19:08:00 +0000
committeralecpl <alec@alec.pl>2010-06-17 19:08:00 +0000
commitce06d32dd81e3a9c5c5c8a5e27562b5c55b49c81 (patch)
treea5267605f04f183e42263b652f27b5c475950722 /program/steps/mail
parent37e467d55cfb0323989127ba04c4e449ce2ed784 (diff)
- UI unification
- Added button to hide/unhide the preview pane (#1484215)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index a63b50907..1614f4ccc 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -407,14 +407,15 @@ function rcmail_message_list_head($attrib, $a_show_cols)
*/
function rcmail_messagecontent_frame($attrib)
{
- global $OUTPUT;
+ global $OUTPUT, $RCMAIL;
if (empty($attrib['id']))
$attrib['id'] = 'rcmailcontentwindow';
$attrib['name'] = $attrib['id'];
- $OUTPUT->set_env('contentframe', $attrib['id']);
+ if ($RCMAIL->config->get('preview_pane'))
+ $OUTPUT->set_env('contentframe', $attrib['id']);
$OUTPUT->set_env('blankpage', $attrib['src'] ? $OUTPUT->abs_url($attrib['src']) : 'program/blank.gif');
return html::iframe($attrib);