mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Make sure top actually has app before calling it.
Fixes error in calendar where non-list views are still in an iframe, but top window has no app.js
This commit is contained in:
parent
7c5db56d61
commit
140a0746d1
@ -100,7 +100,7 @@ var AppJS = Class.extend(
|
||||
sidebox= $j('#favorite_sidebox_'+this.appname,egw_fw.sidemenuDiv);
|
||||
}
|
||||
// Make sure we're running in the top window when we init sidebox
|
||||
if(window.top.app[this.appname] !== this)
|
||||
if(window.top.app[this.appname] !== this && window.top.app[this.appname])
|
||||
{
|
||||
window.top.app[this.appname]._init_sidebox(sidebox);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user