*** empty log message ***
authorKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 14:55:42 +0000 (14:55 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 14:55:42 +0000 (14:55 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@238 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/alt_mod_frameset.php

index d942f8e..12c0ae7 100755 (executable)
@@ -116,9 +116,12 @@ class SC_alt_mod_frameset {
                $TBE_TEMPLATE->docType='xhtml_frames';
                $this->content = $TBE_TEMPLATE->startPage('Frameset');
 
+                       // THis onload handler is a bug-fix for a possible bug in Safari browser for Mac. Posted by Jack COLE. Should not influence other browsers negatively.
+               $onLoadHandler = ' onload="if(top.content.nav_frame.location.href.length == 1) {top.content.nav_frame.location=\''.$URL_nav.'\';};"';
+
                if ($this->resizable)   {
                        $this->content.= '
-       <frameset cols="'.$width.',*">
+       <frameset cols="'.$width.',*"'.$onLoadHandler.'>
                <frame name="nav_frame" src="'.$URL_nav.'" marginwidth="0" marginheight="0" scrolling="auto" />
                <frame name="list_frame" src="'.$URL_list.'" marginwidth="0" marginheight="0" scrolling="auto" />
        </frameset>
@@ -128,7 +131,7 @@ class SC_alt_mod_frameset {
                } else {
                        $this->content.= '
 
-       <frameset cols="'.$width.',8,*" framespacing="0" frameborder="0" border="0">
+       <frameset cols="'.$width.',8,*" framespacing="0" frameborder="0" border="0"'.$onLoadHandler.'>
                <frame name="nav_frame" src="'.$URL_nav.'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
                <frame name="border_frame" src="border.html" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
                <frame name="list_frame" src="'.$URL_list.'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />