From 6f62ecc17c3b4e265b1cd63470c392c84018bb62 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 2 Feb 2007 21:57:32 +0000 Subject: [PATCH] Use addButton() here too git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12212 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/preview_pane/functions.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/preview_pane/functions.php b/plugins/preview_pane/functions.php index 824c9fd1..1df2a326 100644 --- a/plugins/preview_pane/functions.php +++ b/plugins/preview_pane/functions.php @@ -111,9 +111,13 @@ function preview_pane_message_list_do() if ($use_previewPane == 1) { - $output .= '' + // why isn't this already available? + include_once(SM_PATH . 'functions/forms.php'); + + $output .= addButton(_("Clear Preview"), 'clear_preview', + array('onclick' => 'parent.bottom.document.location=\'' + . $base_uri . '/plugins/preview_pane/empty_frame.php\'; ')) + // don't let message list load into preview pane at all -- 2.25.1