mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:39:00 +01:00
Etemplate: Fix links with title provided always displayed loading spinner
This commit is contained in:
parent
dd9f9f1dd4
commit
a81dfdcfd8
@ -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