Merge branch 'ent-7964-nug-visual-en-tree-view' into 'develop'

Added title attr to module names in treeview

See merge request artica/pandorafms!4412
This commit is contained in:
Daniel Rodriguez 2021-10-07 08:42:01 +00:00
commit 2118f44a7a
1 changed files with 4 additions and 1 deletions

View File

@ -965,9 +965,12 @@ var TreeController = {
$content.append($statusImage);
}
element.name = htmlDecode(element.name);
// Name max 42 chars.
$content.append(
'<span class="module-name">' +
'<span title="' +
element.name +
'" class="module-name">' +
element.name.substring(0, 42) +
(element.name.length > 42 ? "..." : "") +
"</span>"