Etemplate - even better formatting for display of linked files in sub-directories

Now looks good for multiple files in the same sub-dir, not just one file per sub-dir
This commit is contained in:
nathangray 2019-04-25 11:57:42 -06:00
parent 64a0ec9c02
commit 383b602c67

View File

@ -2168,9 +2168,9 @@ var et2_link_list = (function(){ "use strict"; return et2_link_string.extend(
}
}
var filename = dirs.pop();
if(reformat && dirs.length === 1)
if(reformat && (dirs.length - i) === 0)
{
$td.html('<span style="display: inline-block; width:'+span_size+'ex;"></span> - '+dirs.join(''));
$td.html('<span style="display: inline-block; width:'+span_size+'ex;"></span> - '+filename);
}
else
{