Use addButton() here too
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2007 21:57:32 +0000 (21:57 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2007 21:57:32 +0000 (21:57 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12212 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/preview_pane/functions.php

index 824c9fd..1df2a32 100644 (file)
@@ -111,9 +111,13 @@ function preview_pane_message_list_do()
 
    if ($use_previewPane == 1)
    {
 
    if ($use_previewPane == 1)
    {
-      $output .= '<input type="button" value="' . _("Clear Preview") 
-         . '" onclick="parent.bottom.document.location=\'' . SM_PATH 
-         . 'plugins/preview_pane/empty_frame.php\'" />'
+      // 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
 
 
       // don't let message list load into preview pane at all