From 140a0746d13ca2aa1202903ae38217afbcf6f613 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 30 Apr 2014 16:25:05 +0000 Subject: [PATCH] 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 --- phpgwapi/js/jsapi/app_base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/app_base.js b/phpgwapi/js/jsapi/app_base.js index f9f4ce1eb3..9326f6bbfe 100644 --- a/phpgwapi/js/jsapi/app_base.js +++ b/phpgwapi/js/jsapi/app_base.js @@ -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); }