Somehow calendar sidebox does not exist when normal initialization happens, so re-initialize it (again) here.

This commit is contained in:
Nathan Gray 2014-02-12 17:36:20 +00:00
parent 1ca01da9b0
commit b8938e66ff

View File

@ -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')