From c23aad2feb9923cbf9197f4d99f73978a61de832 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Mon, 1 Oct 2012 17:45:52 +0200 Subject: Revert "Add full headers view in message preview window (#1488538)" This reverts commit af276f21e5364eb65a56b64c3455bc284ff1e2f2. Conflicts: CHANGELOG skins/larry/mail.css --- program/steps/mail/func.inc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'program/steps') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 8bf80a6ee..45582d40d 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1055,17 +1055,12 @@ function rcmail_message_full_headers($attrib, $headers=NULL) global $OUTPUT; $html = html::div(array('id' => "all-headers", 'class' => "all", 'style' => 'display:none'), html::div(array('id' => 'headers-source'), '')); - - if (!get_boolean($attrib['no-switch'])) { - $html .= html::div(array('class' => "more-headers show-headers", 'onclick' => "return ".JS_OBJECT_NAME.".command('show-headers','',this)"), ''); - } - - unset($attrib['no-switch']); + $html .= html::div(array('class' => "more-headers show-headers", 'onclick' => "return ".JS_OBJECT_NAME.".command('show-headers','',this)"), ''); $OUTPUT->add_gui_object('all_headers_row', 'all-headers'); $OUTPUT->add_gui_object('all_headers_box', 'headers-source'); - return count($attrib) > 1 ? html::div($attrib, $html) : $html; + return html::div($attrib, $html); } -- cgit v1.2.3