From 1d5fe04d198275b1d9c861210bd70d31d6b380e4 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 29 Aug 2007 07:15:40 +0000 Subject: [PATCH] Simplify how frames are accessed git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12623 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default_advanced/page_header.tpl | 30 +++------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/templates/default_advanced/page_header.tpl b/templates/default_advanced/page_header.tpl index d85ef9b9..aeec33a0 100644 --- a/templates/default_advanced/page_header.tpl +++ b/templates/default_advanced/page_header.tpl @@ -170,14 +170,7 @@ $help_link = makeInternalLink ('src/help.php', $help_str); } if (first_frame != 0) { - if (document.all) - { - parent.document.all["fs2"]. = first_frame + ", " + second_frame; - } - else if (this.document.getElementById) - { - parent.document.getElementById("fs2"). = first_frame + ", " + second_frame; - } + parent.fs2. = first_frame + ", " + second_frame; } if (self.name == 'right') { - if (document.all) - { - parent.document.all["fs2"]. = "*, " + ; - } - else if (this.document.getElementById) - { - parent.document.getElementById("fs2"). = "*, " + ; - } + parent.fs2. = "*, " + ; } // restores the preview pane if it sucked up the whole page for composing a message else if (self.name == 'bottom') { - if (document.all) - { - if (parent.document.all["fs2"]. == "*, 100%") - parent.document.all["fs2"]. = "*, " + ; - } - else if (this.document.getElementById) - { - if (parent.document.getElementById("fs2"). == "*, 100%") - parent.document.getElementById("fs2"). = "*, " + ; - } + if (parent.fs2. == "*, 100%") + parent.fs2. = "*, " + ; } // --> -- 2.25.1