fixed a couple more calls to egw.link_title() without 3rd parameter

This commit is contained in:
ralf 2022-05-02 11:43:51 +02:00
parent 74ad3ba7b0
commit 21def67f83
3 changed files with 9 additions and 10 deletions

View File

@ -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"]);

View File

@ -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] = {

View File

@ -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);
});
}
}
}