mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 00:39:19 +01:00
do not destroy top-level app object, if we run in popup
This commit is contained in:
parent
3f8acc1fd1
commit
48c8b1de74
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user