Fix a bug in formatting for files in subdirectories

This commit is contained in:
Nathan Gray 2015-09-08 19:11:00 +00:00
parent 085425e821
commit 841f6a575d

View File

@ -1975,6 +1975,7 @@ var et2_link_list = et2_link_string.extend(
if(prev.length === 1)
{
var prev_dirs = (prev.attr('data-title') || '').split('/');
var reformat = false;
if(prev_dirs.length > 1 && prev_dirs.length == dirs.length)
{
var span_size = 0.3;
@ -1983,10 +1984,18 @@ var et2_link_list = et2_link_string.extend(
// Current is same as prev, blank it
if(dirs[i] === prev_dirs[i])
{
reformat = true;
span_size += dirs[i].length+1;
dirs[i] = '';
}
else
{
break;
}
}
}
if(reformat)
{
$td.html('<span style="display: inline-block; width:'+span_size+'ex;"></span>&nbsp;- '+dirs.join(''));
}
else