mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Etemplate: Fix links with title provided always displayed loading spinner
This commit is contained in:
parent
20c464a161
commit
dd9352e9c4
@ -1373,10 +1373,12 @@ var et2_link_string = /** @class */ (function (_super) {
|
||||
}
|
||||
e.stopImmediatePropagation();
|
||||
});
|
||||
if (_link_data.title)
|
||||
link.text(_link_data.title);
|
||||
if (_link_data.title) {
|
||||
link.text(_link_data.title)
|
||||
.removeClass("loading");
|
||||
}
|
||||
// Now that link is created, get title from server & update
|
||||
if (!_link_data.title) {
|
||||
else {
|
||||
this.egw().link_title(_link_data.app, _link_data.id, function (title) {
|
||||
if (title)
|
||||
this.removeClass("loading").text(title);
|
||||
|
@ -1694,10 +1694,13 @@ export class et2_link_string extends expose(class et2_link_string extends et2_va
|
||||
e.stopImmediatePropagation();
|
||||
});
|
||||
|
||||
if(_link_data.title) link.text(_link_data.title);
|
||||
|
||||
if(_link_data.title)
|
||||
{
|
||||
link.text(_link_data.title)
|
||||
.removeClass("loading");
|
||||
}
|
||||
// Now that link is created, get title from server & update
|
||||
if(!_link_data.title)
|
||||
else
|
||||
{
|
||||
this.egw().link_title(_link_data.app, _link_data.id, function(title) {
|
||||
if (title)
|
||||
|
Loading…
Reference in New Issue
Block a user