mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Etemplate - Fix bug in vfs widget where if the name matched part of the path, the name was not displayed
This commit is contained in:
parent
b28610a626
commit
6c059fc256
@ -74,9 +74,10 @@ var et2_vfs = (function(){ "use strict"; return et2_valueWidget.extend([et2_IDet
|
||||
// calculate path as parent of name, which can contain slashes
|
||||
// eg. _value.path=/home/ralf/sub/file, _value.name=sub/file --> path=/home/ralf
|
||||
// --> generate clickable fields for sub/ + file
|
||||
if(_value.path.indexOf(_value.name) >= 0)
|
||||
var sub_path = path.substr(0, _value.path.length-_value.name.length-1);
|
||||
if(_value.path.indexOf(_value.name) >= 0 && sub_path[sub_path.length-1] === '/')
|
||||
{
|
||||
path = path.substr(0, _value.path.length-_value.name.length-1);
|
||||
path = sub_path;
|
||||
var path_offset = path.split('/').length;
|
||||
var path_parts = _value.path.split('/');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user