bug #1006514, top left frame in Safari 1.2.3

This commit is contained in:
Marc Delisle
2004-09-14 16:58:18 +00:00
parent f04a85f22e
commit cb5af5eb2f
2 changed files with 10 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2004-09-14 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: stay on the form when passwords don't match
(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>
* themes.php, libraries/common.lib.php, libraries/defines.lib.php,

View File

@@ -906,11 +906,19 @@ if ($cfg['LeftFrameLight'] && $cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
?>
<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 (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; ?>');
}
}
}
// 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>
<?php