If link is missing needed information so it won't work, don't look like a link

This commit is contained in:
Nathan Gray 2014-10-21 16:32:47 +00:00
parent 0722b0a328
commit 29f84a83f9

View File

@ -1142,10 +1142,15 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM],
this.link.unbind();
if(_value.id && _value.app)
{
this.link.addClass("et2_link");
this.link.click( function(){
self.egw().open(_value, "", "view",null,_value.app,_value.app);
});
}
else
{
this.link.removeClass("et2_link");
}
if(!_value.title) {
var self = this;
var node = this.link[0];