mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixed a couple more calls to egw.link_title() without 3rd parameter
This commit is contained in:
parent
74ad3ba7b0
commit
21def67f83
@ -268,7 +268,7 @@ export class et2_selectAccount extends et2_selectbox
|
||||
if(!found && !isNaN(search[j]))
|
||||
{
|
||||
// Add it in
|
||||
var name = this.egw().link_title('api-accounts', search[j]);
|
||||
var name = this.egw().link_title('api-accounts', search[j], false);
|
||||
if (name) // was already cached on client-side
|
||||
{
|
||||
update_options = true;
|
||||
@ -904,4 +904,4 @@ export class et2_selectAccount_ro extends et2_link_string
|
||||
}
|
||||
}
|
||||
}
|
||||
et2_register_widget(et2_selectAccount_ro, ["select-account_ro"]);
|
||||
et2_register_widget(et2_selectAccount_ro, ["select-account_ro"]);
|
@ -1090,7 +1090,7 @@ export class et2_taglist_account extends et2_taglist
|
||||
else if (typeof v != 'object' && !isNaN(v) && (typeof v != 'string' || v.match(this.int_reg_exp)))
|
||||
{
|
||||
v = parseInt(v);
|
||||
let label = this.egw().link_title('api-accounts', v);
|
||||
let label = this.egw().link_title('api-accounts', v, false);
|
||||
if (label) // already cached on client-side --> replace it
|
||||
{
|
||||
values[i] = {
|
||||
|
@ -393,19 +393,18 @@ export class et2_vfsPath extends et2_vfsName
|
||||
else if(i === 3 && !isNaN(<number><unknown>text))
|
||||
{
|
||||
// we first need to call link_title without callback, as callback would be called for cache-hits too!
|
||||
let link_title = this.egw().link_title(path_parts[2], path_parts[3]);
|
||||
let link_title = this.egw().link_title(path_parts[2], path_parts[3], false);
|
||||
if(link_title && typeof link_title !== 'undefined')
|
||||
{
|
||||
text = link_title;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.egw().link_title(path_parts[2], path_parts[3],
|
||||
function(title) {
|
||||
if(!title) return;
|
||||
jQuery('li',this.span).first().text(title);
|
||||
}, this
|
||||
);
|
||||
this.egw().link_title(path_parts[2], path_parts[3], true).then(title =>
|
||||
{
|
||||
if(!title) return;
|
||||
jQuery('li',this.span).first().text(title);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user