From: <pdo...@us...> - 2007-08-29 07:15:45
|
Revision: 12623 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12623&view=rev Author: pdontthink Date: 2007-08-29 00:15:40 -0700 (Wed, 29 Aug 2007) Log Message: ----------- Simplify how frames are accessed Modified Paths: -------------- trunk/squirrelmail/templates/default_advanced/page_header.tpl Modified: trunk/squirrelmail/templates/default_advanced/page_header.tpl =================================================================== --- trunk/squirrelmail/templates/default_advanced/page_header.tpl 2007-08-29 02:43:53 UTC (rev 12622) +++ trunk/squirrelmail/templates/default_advanced/page_header.tpl 2007-08-29 07:15:40 UTC (rev 12623) @@ -170,14 +170,7 @@ } if (first_frame != 0) { - 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; - } + parent.fs2.<?php echo $orientation; ?> = first_frame + ", " + second_frame; } <?php @@ -193,29 +186,14 @@ ?> if (self.name == 'right') { - 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; ?>; - } + parent.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 (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; ?>; - } + if (parent.fs2.<?php echo $orientation; ?> == "*, 100%") + parent.fs2.<?php echo $orientation; ?> = "*, " + <?php echo $previewPane_size; ?>; } <?php } } ?> // --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |