Fixed problem with generation of numerical indices in _egw_json_getFormValue, using the new global parameter of egw_json_response.redirect in json.php

This commit is contained in:
Andreas Stöckel
2010-06-11 10:23:13 +00:00
parent f5d08b580f
commit 4b108026c6
2 changed files with 63 additions and 24 deletions

View File

@ -44,14 +44,17 @@ else if (document.layers)
*/
function egw_topWindow()
{
if (window.opener)
if (typeof window.parent != "undefined" && typeof window.parent.top != "undefined")
{
return window.parent.top;
}
if (typeof window.opener != "undefined" && typeof window.opener.top != "undefined")
{
return window.opener.top;
}
else
{
return window.top;
}
return window.top;
}
/**