Dialogs: Home folder icon instead of '/'.
This commit is contained in:
parent
ba9849a1aa
commit
c3779555aa
2 changed files with 8 additions and 3 deletions
|
@ -383,6 +383,11 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin
|
|||
|
||||
/* ---- DIALOGS ---- */
|
||||
#oc-dialog-filepicker-content .dirtree {width:92%; overflow:hidden; }
|
||||
#oc-dialog-filepicker-content .dirtree .home {
|
||||
background-image:url('../img/places/home.svg');
|
||||
background-repeat:no-repeat;
|
||||
background-position: left center;
|
||||
}
|
||||
#oc-dialog-filepicker-content .dirtree span:not(:last-child) { cursor: pointer; }
|
||||
#oc-dialog-filepicker-content .dirtree span:last-child { font-weight: bold; }
|
||||
#oc-dialog-filepicker-content .dirtree span:not(:last-child)::after { content: '>'; padding: 3px;}
|
||||
|
|
|
@ -314,10 +314,10 @@ var OCdialogs = {
|
|||
}));
|
||||
});
|
||||
}
|
||||
this.$dirTree.prepend($template.octemplate({
|
||||
$template.octemplate({
|
||||
dir: '',
|
||||
name: '/'
|
||||
}));
|
||||
name: ' ' // Ugly but works ;)
|
||||
}, {escapeFunction: null}).addClass('home svg').prependTo(this.$dirTree);
|
||||
},
|
||||
/**
|
||||
* handle selection made in the tree list
|
||||
|
|
Loading…
Reference in a new issue