mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-05-06 09:08:18 -04:00
fix long usernames in list view #6997
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
8fa54324d2
commit
0ee73bd98a
@ -5188,7 +5188,7 @@
|
|||||||
su = EscapeHtml(su);
|
su = EscapeHtml(su);
|
||||||
if (su.length > 15) { su = su.substring(0, 14) + '…'; }
|
if (su.length > 15) { su = su.substring(0, 14) + '…'; }
|
||||||
if (node.lusers && node.lusers.length > 0) {
|
if (node.lusers && node.lusers.length > 0) {
|
||||||
return addKeyLinkConditional(EscapeHtml(su), EscapeHtml(u) + " " + "(" + "Locked" + ")", (node.lusers && node.lusers.indexOf(u) >= 0));
|
return addKeyLinkConditional(su, EscapeHtml(u) + ' (' + "Locked" + ')', (node.lusers && node.lusers.indexOf(u) >= 0));
|
||||||
} else {
|
} else {
|
||||||
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
|
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
|
||||||
}
|
}
|
||||||
|
@ -5697,7 +5697,7 @@
|
|||||||
su = EscapeHtml(su);
|
su = EscapeHtml(su);
|
||||||
if (su.length > 15) { su = su.substring(0, 14) + '…'; }
|
if (su.length > 15) { su = su.substring(0, 14) + '…'; }
|
||||||
if (node.lusers && node.lusers.length > 0) {
|
if (node.lusers && node.lusers.length > 0) {
|
||||||
return addKeyLinkConditional(EscapeHtml(su), EscapeHtml(u) + " " + "(" + "Locked" + ")", (node.lusers && node.lusers.indexOf(u) >= 0));
|
return addKeyLinkConditional(su, EscapeHtml(u) + ' (' + "Locked" + ')', (node.lusers && node.lusers.indexOf(u) >= 0));
|
||||||
} else {
|
} else {
|
||||||
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
|
return '<span title="' + EscapeHtml(u) + '">' + su + '</span>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user