fixed error, if no favorites are defined

This commit is contained in:
Ralf Becker 2013-11-12 07:51:28 +00:00
parent 54c930b555
commit 96336ea521

View File

@ -324,7 +324,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader],
_init_sidebox: function()
{
// Sometimes the sidebox is not loaded when the template is created (jdots)
if(!this.sidebox_target || this.sidebox_target.length == 0)
if(this.options && (!this.sidebox_target || this.sidebox_target.length == 0))
{
this.sidebox_target = $j("#"+this.options.sidebox_target);
if(this.sidebox_target.length == 0 && egw_getFramework() != null)