Index: branches/RC/core/admin_templates/incs/close_popup.tpl =================================================================== diff -u -N -r11482 -r11495 --- branches/RC/core/admin_templates/incs/close_popup.tpl (.../close_popup.tpl) (revision 11482) +++ branches/RC/core/admin_templates/incs/close_popup.tpl (.../close_popup.tpl) (revision 11495) @@ -61,16 +61,22 @@ // 1. cycle through popups to get main window try { // will be error, when other site is opened in parent window + var $i = 0; while ($main_window.opener) { + if ($i == 10) { + break; + } + $main_window = $main_window.opener; + $i++; } } catch (err) { // catch Access/Permission Denied error - // alert('getFrame.Error: [' + err.description + ']'); + // alert('getFrame.Error: [' + err.description + ']'); return window; } - + var $frameset = $main_window.parent.frames; for ($i = 0; $i < $frameset.length; $i++) { if ($frameset[$i].name == $name) {