Add noicon option to vfsPath

This commit is contained in:
Hadi Nategh 2019-01-16 10:13:37 +01:00
parent bdf0b6c287
commit 8ee2e719de
2 changed files with 15 additions and 1 deletions

View File

@ -265,6 +265,14 @@ et2_register_widget(et2_vfsName, ["vfs-name"]);
*/
var et2_vfsPath = (function(){ "use strict"; return et2_vfsName.extend(
{
attributes: {
noicon: {
type: "boolean",
description: "suppress folder icons",
default: true
}
},
/**
* Constructor
*
@ -365,7 +373,7 @@ var et2_vfsPath = (function(){ "use strict"; return et2_vfsName.extend(
e.data.egw.open({path: egw.encodePath(e.data.data), type:'httpd/unix-directory'}, "file");
})
.prependTo(this.span);
if(image)
if(image && !this.options.noicon)
{
node.prepend(this.egw().image_element(image));
}

View File

@ -923,6 +923,12 @@ li.vfsPath.et2_clickable:last-child:hover {
li.vfsPath.et2_clickable:first-child {
font-weight: bold;
}
li.vfsPath.et2_clickable:last-child:before {
content: '/';
width: 5px;
padding-left: 10px;
padding-right: 2px;
}
li.vfsPath.et2_clickable:not(:first-child):after {
content: ' ';
background-image: url(images/egw_action/arrow_left.png);