From b8938e66ff8399f3aa3b76aa794361fd1746decc Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 12 Feb 2014 17:36:20 +0000 Subject: [PATCH] Somehow calendar sidebox does not exist when normal initialization happens, so re-initialize it (again) here. --- calendar/js/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index 1f29124c4e..5335265480 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -70,6 +70,16 @@ app.classes.calendar = AppJS.extend( { // call parent this._super.apply(this, arguments); + + // Re-init sidebox, since it was probably initialized too soon + var sidebox = jQuery('#favorite_sidebox_'+this.appname); + if(sidebox.length == 0 && egw_getFramework() != null) + { + var egw_fw = egw_getFramework(); + sidebox= $j('#favorite_sidebox_'+this.appname,egw_fw.sidemenuDiv); + } + this._init_sidebox(sidebox); + var content = this.et2.getArrayMgr('content'); if (typeof et2.templates['calendar.list'] != 'undefined')