From 46415869714c9339d324e1648a2961613211d55f Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 23 Jun 2010 08:32:39 -0400 Subject: [PATCH] - Hide preview frame switch when preview_pane option is disabled by dont_override (#1486814) --- skins/default/templates/mail.html | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/skins/default/templates/mail.html b/skins/default/templates/mail.html index 2a150dd..b2d51a7 100644 --- a/skins/default/templates/mail.html +++ b/skins/default/templates/mail.html @@ -86,8 +86,10 @@ <roundcube:button command="expand-unread" type="link" title="expand-unread" class="buttonPas expand-unread" classAct="button expand-unread" classSel="button expand-unreadsel" content=" " /> <roundcube:button command="collapse-all" type="link" title="collapse-all" class="buttonPas collapse-all" classAct="button collapse-all" classSel="button collapse-allsel" content=" " /> <roundcube:endif /> + <roundcube:if condition="!in_array('preview_pane', (array)config:dont_override)" /> <label><span style="margin-left: 12px"><roundcube:label name="previewpane" />: </span> - <input type="checkbox" onclick="rcmail_ui.switch_preview_pane(this)"<roundcube:if condition="config:preview_pane == true" /> checked="checked"<roundcube:endif /> /></label> + <input type="checkbox" onclick="rcmail_ui.switch_preview_pane(this)"<roundcube:exp expression="config:preview_pane == true ? ' checked=checked' : ''" /> /></label> + <roundcube:endif /> </div> <div id="countcontrols" class="pagenav"> <roundcube:button command="lastpage" type="link" class="buttonPas lastpage" classAct="button lastpage" classSel="button lastpageSel" title="lastmessages" content=" " /> -- Gitblit v1.9.1