mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 14:30:05 +01:00
Add noicon option to vfsPath
This commit is contained in:
parent
bdf0b6c287
commit
8ee2e719de
@ -265,6 +265,14 @@ et2_register_widget(et2_vfsName, ["vfs-name"]);
|
|||||||
*/
|
*/
|
||||||
var et2_vfsPath = (function(){ "use strict"; return et2_vfsName.extend(
|
var et2_vfsPath = (function(){ "use strict"; return et2_vfsName.extend(
|
||||||
{
|
{
|
||||||
|
attributes: {
|
||||||
|
noicon: {
|
||||||
|
type: "boolean",
|
||||||
|
description: "suppress folder icons",
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* 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");
|
e.data.egw.open({path: egw.encodePath(e.data.data), type:'httpd/unix-directory'}, "file");
|
||||||
})
|
})
|
||||||
.prependTo(this.span);
|
.prependTo(this.span);
|
||||||
if(image)
|
if(image && !this.options.noicon)
|
||||||
{
|
{
|
||||||
node.prepend(this.egw().image_element(image));
|
node.prepend(this.egw().image_element(image));
|
||||||
}
|
}
|
||||||
|
@ -923,6 +923,12 @@ li.vfsPath.et2_clickable:last-child:hover {
|
|||||||
li.vfsPath.et2_clickable:first-child {
|
li.vfsPath.et2_clickable:first-child {
|
||||||
font-weight: bold;
|
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 {
|
li.vfsPath.et2_clickable:not(:first-child):after {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
background-image: url(images/egw_action/arrow_left.png);
|
background-image: url(images/egw_action/arrow_left.png);
|
||||||
|
Loading…
Reference in New Issue
Block a user