Index: branches/5.1.x/core/admin_templates/incs/close_popup.tpl =================================================================== diff -u -r12127 -r12657 --- branches/5.1.x/core/admin_templates/incs/close_popup.tpl (.../close_popup.tpl) (revision 12127) +++ branches/5.1.x/core/admin_templates/incs/close_popup.tpl (.../close_popup.tpl) (revision 12657) @@ -7,7 +7,7 @@ var $is_debug = truefalse; var $use_popups = truefalse; var $redirect_url = ''; - var $modal_windows = truefalse; + var $modal_windows = truefalse; if ($is_debug) { document.write('' + $redirect_url.replace('%5C', '\\') + ''); @@ -103,7 +103,10 @@ function window_close($close_callback) { // use this instead of "window.close();" if (!$modal_windows) { - if (getFrame('main').$.isFunction($close_callback)) { + // don't use other (e.g. parent) window methods to detect type of + // variables from given window, because it won't work in IE + + if (Object.prototype.toString.call($close_callback) === '[object Function]') { // use close callback, because iframe will be removed later in this method $close_callback(); }