fix 2nd line also showing drive name #1892

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-02-01 14:40:55 +00:00
parent b887457ec4
commit e6f27fca36

View File

@ -11058,7 +11058,7 @@
h = '<div class=filelist file=999>';
h += '<input file=999 style=float:left name=fd class=fcb type=checkbox onchange=p13setActions() value=\'' + f.nx + '\'>&nbsp;<span style=float:right title="' + title + '">' + right + '</span>';
h += '<span><div class=fileIcon' + (f.dt == 'REMOVABLE' ? 5 : (f.dt == 'CDROM' ? 6 : f.t)) + ' onclick=p13folderset("' + encodeURIComponentEx(f.nx) + '")></div><a href=# style=cursor:pointer onclick=\'return p13folderset("' + encodeURIComponentEx(f.nx) + '")\'>';
if (isWindowsNode(currentNode) && currentNode.volumes && currentNode.volumes[shortname.charAt(0).toUpperCase()] && currentNode.volumes[shortname.charAt(0).toUpperCase()].name) {
if (isWindowsNode(currentNode) && f.dt && currentNode.volumes && currentNode.volumes[shortname.charAt(0).toUpperCase()] && currentNode.volumes[shortname.charAt(0).toUpperCase()].name) {
h += currentNode.volumes[shortname.charAt(0).toUpperCase()].name + " (" + shortname + ")";
} else {
h += shortname;