瀏覽代碼

Revert 12623. It's frameSETs not frames.

pdontthink 18 年之前
父節點
當前提交
63411068aa
共有 1 個文件被更改,包括 26 次插入4 次删除
  1. 26 4
      templates/default_advanced/page_header.tpl

+ 26 - 4
templates/default_advanced/page_header.tpl

@@ -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 } } ?>
 // -->