Dialogs: Home folder icon instead of '/'.

This commit is contained in:
Thomas Tanghus 2013-05-17 16:18:40 +02:00
parent ba9849a1aa
commit c3779555aa
2 changed files with 8 additions and 3 deletions

View file

@ -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;}

View file

@ -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