bug #1006514, top left frame in Safari 1.2.3
This commit is contained in:
@@ -8,6 +8,8 @@ $Source$
|
|||||||
2004-09-14 Marc Delisle <lem9@users.sourceforge.net>
|
2004-09-14 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* server_privileges.php: stay on the form when passwords don't match
|
* server_privileges.php: stay on the form when passwords don't match
|
||||||
(after the js alert)
|
(after the js alert)
|
||||||
|
* left.php, bug #1006514, top left frame does not load in Safari 1.2.3,
|
||||||
|
workaround thanks to Ryan Schmidt
|
||||||
|
|
||||||
2004-09-14 Michal Čihař <michal@cihar.com>
|
2004-09-14 Michal Čihař <michal@cihar.com>
|
||||||
* themes.php, libraries/common.lib.php, libraries/defines.lib.php,
|
* themes.php, libraries/common.lib.php, libraries/defines.lib.php,
|
||||||
|
8
left.php
8
left.php
@@ -906,11 +906,19 @@ if ($cfg['LeftFrameLight'] && $cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
|
|||||||
?>
|
?>
|
||||||
<script language="JavaScript" type="text/javascript">
|
<script language="JavaScript" type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
|
function check_queryframe_reload() {
|
||||||
if (typeof(window.parent.frames['queryframe'])!='undefined' && typeof(window.parent.frames['queryframe'].document.forms['left'])!='undefined') {
|
if (typeof(window.parent.frames['queryframe'])!='undefined' && typeof(window.parent.frames['queryframe'].document.forms['left'])!='undefined') {
|
||||||
if (window.parent.frames['queryframe'].document.forms['left'].elements['lightm_db'].value!='<?php echo $my_lightm_db; ?>') {
|
if (window.parent.frames['queryframe'].document.forms['left'].elements['lightm_db'].value!='<?php echo $my_lightm_db; ?>') {
|
||||||
window.parent.frames['queryframe'].location.replace('<?php echo 'queryframe.php?' . $my_url_query . '&hash=' . $hash; ?>');
|
window.parent.frames['queryframe'].location.replace('<?php echo 'queryframe.php?' . $my_url_query . '&hash=' . $hash; ?>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// This is a workaround for the problem in Safari 1.2.3 where the
|
||||||
|
// top left frame does not load.
|
||||||
|
// If we call this right away it usually prevents the top-left frame from
|
||||||
|
// loading in Safari, so call it delayed. -Ryan Schmidt 2004-08-15
|
||||||
|
setTimeout('check_queryframe_reload()', 1000);
|
||||||
|
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user