mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix a bug in formatting for files in subdirectories
This commit is contained in:
parent
085425e821
commit
841f6a575d
@ -1975,6 +1975,7 @@ var et2_link_list = et2_link_string.extend(
|
|||||||
if(prev.length === 1)
|
if(prev.length === 1)
|
||||||
{
|
{
|
||||||
var prev_dirs = (prev.attr('data-title') || '').split('/');
|
var prev_dirs = (prev.attr('data-title') || '').split('/');
|
||||||
|
var reformat = false;
|
||||||
if(prev_dirs.length > 1 && prev_dirs.length == dirs.length)
|
if(prev_dirs.length > 1 && prev_dirs.length == dirs.length)
|
||||||
{
|
{
|
||||||
var span_size = 0.3;
|
var span_size = 0.3;
|
||||||
@ -1983,10 +1984,18 @@ var et2_link_list = et2_link_string.extend(
|
|||||||
// Current is same as prev, blank it
|
// Current is same as prev, blank it
|
||||||
if(dirs[i] === prev_dirs[i])
|
if(dirs[i] === prev_dirs[i])
|
||||||
{
|
{
|
||||||
|
reformat = true;
|
||||||
span_size += dirs[i].length+1;
|
span_size += dirs[i].length+1;
|
||||||
dirs[i] = '';
|
dirs[i] = '';
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if(reformat)
|
||||||
|
{
|
||||||
$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> - '+dirs.join(''));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user