forked from extern/egroupware
Somehow calendar sidebox does not exist when normal initialization happens, so re-initialize it (again) here.
This commit is contained in:
parent
1ca01da9b0
commit
b8938e66ff
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user