From: pdontthink Date: Wed, 29 Aug 2007 07:15:40 +0000 (+0000) Subject: Simplify how frames are accessed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1d5fe04d198275b1d9c861210bd70d31d6b380e4;p=squirrelmail.git Simplify how frames are accessed git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12623 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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. = "*, " + ; } // -->