diff --git a/ChangeLog b/ChangeLog index 00568667d..692253858 100755 --- a/ChangeLog +++ b/ChangeLog @@ -19,7 +19,10 @@ $Source$ SQL-History. Removed a dupe for inserting comments, fixed integrity check when moving/renaming tables and keeping comments. - + * header.inc.php3: Added one more Javascript if-structure to make sure + the frameset is initialized when querying for an active window. Without + this, when starting phpMyAdmin for the first time, IE6 may complain + depending on the order it loads the framesets. 2003-02-25 Marc Delisle * db_details_structure.php3: undefined variable $comment diff --git a/header.inc.php3 b/header.inc.php3 index 119b8a269..860ba53bb 100755 --- a/header.inc.php3 +++ b/header.inc.php3 @@ -252,7 +252,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { } function reload_querywindow () { - if (top.frames.queryframe && !top.frames.queryframe.querywindow.closed && top.frames.queryframe.querywindow.location) { + if (top.frames.queryframe && top.frames.queryframe.querywindow && !top.frames.queryframe.querywindow.closed && top.frames.queryframe.querywindow.location) { Query Window can be updated.
");' : ''); ?> top.frames.queryframe.querywindow.document.querywindow.db.value = ""; @@ -268,9 +268,9 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { } function focus_querywindow() { - if (top.frames.queryframe.querywindow && !top.frames.queryframe.querywindow.closed && top.frames.queryframe.querywindow.location) { + if (top.frames.queryframe && top.frames.queryframe.querywindow && !top.frames.queryframe.querywindow.closed && top.frames.queryframe.querywindow.location) { top.frames.queryframe.querywindow.focus(); - } else { + } else if (top.frames.queryframe) { top.frames.queryframe.querywindow=window.open('querywindow.php3?&db=&table=', 'js_querywindow','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=yes,width=,height='); if (!top.frames.queryframe.querywindow.opener) {