1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2024-12-18 20:51:23 +01:00

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:33:56 +00:00
parent df98b920cc
commit 5569223e42

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];