Avoid error when clicking on a link with just title

This commit is contained in:
Nathan Gray 2014-03-03 22:29:44 +00:00
parent e6d6c3c270
commit 38e6e353fd

View File

@ -1100,8 +1100,11 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM],
}
this.set_title(this.link, _value.title);
var self = this;
this.link.unbind()
.click( function(){self.egw().open(_value, "", "view",null,_value.app,_value.app);});
this.link.unbind();
if(_value.id && _value.app)
{
this.link.click( function(){self.egw().open(_value, "", "view",null,_value.app,_value.app);});
}
},
/**