remove links user has no rights to view (were shown as "false" befor)

This commit is contained in:
Ralf Becker 2014-02-26 17:38:43 +00:00
parent f4d6234978
commit e24c721409

View File

@ -1272,7 +1272,10 @@ var et2_link_string = et2_valueWidget.extend([et2_IDetachedDOM],
// Now that link is created, get title from server & update
if(!_link_data.title) {
this.egw().link_title(_link_data.app, _link_data.id, function(title) {
this.removeClass("loading").text(title);
if (title)
this.removeClass("loading").text(title);
else
this.remove(); // no rights or not found
}, link);
}
},