mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
fix vfs-path widget to correctly deal with smallPART paths (hierarchical structure inside entry directory)
This commit is contained in:
parent
0c8824c496
commit
b2a85e68b8
@ -390,17 +390,24 @@ export class et2_vfsPath extends et2_vfsName
|
|||||||
text = this.egw().lang(path_parts[2]);
|
text = this.egw().lang(path_parts[2]);
|
||||||
image = this.egw().image('navbar',path_parts[2].toLowerCase());
|
image = this.egw().image('navbar',path_parts[2].toLowerCase());
|
||||||
}
|
}
|
||||||
else if(!isNaN(<number><unknown>text))
|
else if(i === 3 && !isNaN(<number><unknown>text))
|
||||||
{
|
{
|
||||||
let link_title = this.egw().link_title(path_parts[2],path_parts[3],
|
// we first need to call link_title without callback, as callback would be called for cache-hits too!
|
||||||
function(title) {
|
let link_title = this.egw().link_title(path_parts[2], path_parts[3]);
|
||||||
if(!title) return;
|
if(link_title && typeof link_title !== 'undefined')
|
||||||
jQuery('li',this.span).first().text(title);
|
{
|
||||||
}, this
|
text = link_title;
|
||||||
);
|
}
|
||||||
if(link_title && typeof link_title !== 'undefined') text = link_title;
|
else
|
||||||
|
{
|
||||||
|
this.egw().link_title(path_parts[2], path_parts[3],
|
||||||
|
function(title) {
|
||||||
|
if(!title) return;
|
||||||
|
jQuery('li',this.span).first().text(title);
|
||||||
|
}, this
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
let self = this;
|
let self = this;
|
||||||
let node = jQuery(document.createElement("li"))
|
let node = jQuery(document.createElement("li"))
|
||||||
@ -1592,5 +1599,4 @@ export class et2_vfsSelect extends et2_inputWidget
|
|||||||
return this.value;
|
return this.value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
et2_register_widget(et2_vfsSelect, ["vfs-select"]);
|
et2_register_widget(et2_vfsSelect, ["vfs-select"]);
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user