]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dialogs: Home folder icon instead of '/'.
authorThomas Tanghus <thomas@tanghus.net>
Fri, 17 May 2013 14:18:40 +0000 (16:18 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Fri, 17 May 2013 14:18:40 +0000 (16:18 +0200)
core/css/styles.css
core/js/oc-dialogs.js

index 71b1c1fab85bfa0aac2aab31c306d9a8a322dd26..70a840d68903ce08ece49a46dfbd9348a12c828b 100644 (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;}
index 674df05635409631ef0a61628b2800d696a2d1c5..e05b3b0207a62e6b1e24ab7b7273a150d937b2a5 100644 (file)
@@ -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