Allow text area options to use trailing_text attribute
[squirrelmail.git] / templates / default_advanced / page_header.tpl
index aeec33a0bd8a387bf55be5a70a2eb6df7a36da71..4913d6c29c70900ab1b926e09b7faa1a65b17f0b 100644 (file)
@@ -102,7 +102,7 @@ $help_link          = makeInternalLink ('src/help.php', $help_str);
    <?php echo $options_link; ?>&nbsp;&nbsp;
    <?php echo $search_link; ?>&nbsp;&nbsp;
    <?php echo $help_link; ?>&nbsp;&nbsp;
-   <?php /* FIXME: no hooks in templates!! */ global $null; do_hook('menuline', $null); ?>
+   <?php if (!empty($plugin_output['menuline'])) echo $plugin_output['menuline']; ?>
   </td>
   <td class="sqm_providerInfo">
     <?php 
@@ -129,9 +129,9 @@ $help_link          = makeInternalLink ('src/help.php', $help_str);
 <!--
    var delayed_page_load_uri = '';
    function delayed_page_load(page_uri)
-   { page_load_uri = page_uri; setTimeout('page_load()', 500); }
+   { delayed_page_load_uri = page_uri; setTimeout('page_load()', 500); }
    function page_load()
-   { document.location = page_load_uri; }
+   { document.location = delayed_page_load_uri; }
    function refresh_message_list()
    {
 <?php if (!empty($message_list_href)) { ?>
@@ -170,7 +170,14 @@ $help_link         = makeInternalLink ('src/help.php', $help_str);
    }
    if (first_frame != 0)
    {
-      parent.fs2.<?php echo $orientation; ?> = first_frame + ", " + second_frame;
+      if (document.all)
+      {
+         parent.document.all["fs2"].<?php echo $orientation; ?> = first_frame + ", " + second_frame;
+      }
+      else if (this.document.getElementById)
+      {
+         parent.document.getElementById("fs2").<?php echo $orientation; ?> = first_frame + ", " + second_frame;
+      }
    }
 <?php 
 
@@ -186,14 +193,29 @@ $help_link                = makeInternalLink ('src/help.php', $help_str);
 ?>
    if (self.name == 'right')
    {
-      parent.fs2.<?php echo $orientation; ?> = "*, " + <?php echo $new_size; ?>;
+      if (document.all)
+      {
+         parent.document.all["fs2"].<?php echo $orientation; ?> = "*, " + <?php echo $new_size; ?>;
+      }
+      else if (this.document.getElementById)
+      {
+         parent.document.getElementById("fs2").<?php echo $orientation; ?> = "*, " + <?php echo $new_size; ?>;
+      }
    }
 
    // restores the preview pane if it sucked up the whole page for composing a message
    else if (self.name == 'bottom')
    {
-      if (parent.fs2.<?php echo $orientation; ?> == "*, 100%")
-         parent.fs2.<?php echo $orientation; ?> = "*, " + <?php echo $previewPane_size; ?>;
+      if (document.all)
+      {
+         if (parent.document.all["fs2"].<?php echo $orientation; ?> == "*, 100%")
+            parent.document.all["fs2"].<?php echo $orientation; ?> = "*, " + <?php echo $previewPane_size; ?>;
+      }
+      else if (this.document.getElementById)
+      {
+         if (parent.document.getElementById("fs2").<?php echo $orientation; ?> == "*, 100%")
+            parent.document.getElementById("fs2").<?php echo $orientation; ?> = "*, " + <?php echo $previewPane_size; ?>;
+      }
    }
 <?php } } ?>
 // -->