aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-05-17 16:18:40 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-05-17 16:18:40 +0200
commitc3779555aa38940cb16790407c71bc852b9bd742 (patch)
tree6dd60cbad82d26164ae3c1167252f7828c85a022 /core
parentba9849a1aa158f1d5ab371db88d76e492bf476ec (diff)
downloadnextcloud-server-c3779555aa38940cb16790407c71bc852b9bd742.tar.gz
nextcloud-server-c3779555aa38940cb16790407c71bc852b9bd742.zip
Dialogs: Home folder icon instead of '/'.
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.css5
-rw-r--r--core/js/oc-dialogs.js6
2 files changed, 8 insertions, 3 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index 71b1c1fab85..70a840d6890 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -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;}
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 674df056354..e05b3b0207a 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -314,10 +314,10 @@ var OCdialogs = {
}));
});
}
- this.$dirTree.prepend($template.octemplate({
+ $template.octemplate({
dir: '',
- name: '/'
- }));
+ name: '&nbsp;&nbsp;&nbsp;&nbsp;' // Ugly but works ;)
+ }, {escapeFunction: null}).addClass('home svg').prependTo(this.$dirTree);
},
/**
* handle selection made in the tree list