forked from extern/egroupware
If there's no ID, don't even ask for the title
This commit is contained in:
parent
e685a222dc
commit
4efa3e8be5
@ -847,6 +847,8 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM], {
|
||||
if(!_value.title) {
|
||||
var self = this;
|
||||
var node = this.link[0];
|
||||
if(_value.app && _value.id)
|
||||
{
|
||||
var title = this.egw().link_title(_value.app, _value.id, function(title) {self.set_title(node, title);}, this);
|
||||
if(title != null) {
|
||||
_value.title = title;
|
||||
@ -857,6 +859,11 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM], {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_value.title = "";
|
||||
}
|
||||
}
|
||||
this.set_title(this.link, _value.title);
|
||||
var self = this;
|
||||
this.link.unbind()
|
||||
|
Loading…
Reference in New Issue
Block a user