do not destroy top-level app object, if we run in popup

This commit is contained in:
Ralf Becker 2014-11-27 17:37:18 +00:00
parent 3f8acc1fd1
commit 48c8b1de74

View File

@ -33,7 +33,7 @@ app.classes.calendar = AppJS.extend(
init: function()
{
// make calendar object available, even if not running in top window, as sidebox does
if (window.top !== window)
if (window.top !== window && !egw(window).is_popup())
{
// we have to explicitly delete old object or IE11 complains about accessing an already freed script
delete window.top.app.calendar;
@ -181,7 +181,7 @@ app.classes.calendar = AppJS.extend(
{
// F.F can not handle to style correctly an iframe which is hidden (display:none), therefore we need to
// bind a handler to refresh the calendar views after it shows up
iframe.one('show',function(){egw_refresh('','calendar');})
iframe.one('show',function(){egw_refresh('','calendar');});
}
else
{