summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-05-17 06:16:51 +0200
committerThomas Tanghus <thomas@tanghus.net>2013-05-17 06:16:51 +0200
commite60d86bdd1b45e29bf09bacf48bab8d847c54a72 (patch)
tree4492b27fd5caaf1c1403548f76e1c06ad6754c67 /core
parent152e275c8a780c220c5022ef059dd7b12adc7cf1 (diff)
downloadnextcloud-server-e60d86bdd1b45e29bf09bacf48bab8d847c54a72.tar.gz
nextcloud-server-e60d86bdd1b45e29bf09bacf48bab8d847c54a72.zip
Dialogs: Make slug show last dir emphasized.
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.css7
-rw-r--r--core/js/oc-dialogs.js4
2 files changed, 6 insertions, 5 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index 2038417685c..eab4e226a11 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -383,9 +383,10 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin
/* ---- DIALOGS ---- */
#oc-dialog-filepicker-content .dirup {width:4%; font-weight: bold;}
-#oc-dialog-filepicker-content .dirtree {width:92%; overflow:hidden; font-weight: bold; }
-#oc-dialog-filepicker-content .dirtree span { cursor: pointer; }
-#oc-dialog-filepicker-content .dirtree span:not(last-child)::after { content: '>'; padding: 3px;}
+#oc-dialog-filepicker-content .dirtree {width:92%; overflow:hidden; }
+#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;}
#oc-dialog-filepicker-content .filelist {height:270px; overflow-y:auto; background-color:white; width:100%;}
#oc-dialog-filepicker-content .filelist img { margin: 2px 1em 0 4px; }
#oc-dialog-filepicker-content .filelist .date { float:right;margin-right:1em; }
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 4da9623c0a7..8f127bfb62b 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -198,7 +198,7 @@ var OCdialogs = {
self.$filelist = self.$filePicker.find('.filelist');
self.$dirUp = self.$filePicker.find('.dirup');
self.$dirTree = self.$filePicker.find('.dirtree');
- self.$dirTree.on('click', 'span', self, self.handleTreeListSelect);
+ self.$dirTree.on('click', 'span:not(:last-child)', self, self.handleTreeListSelect);
self.$dirUp.click(self, self.filepickerDirUp);
self.$filelist.on('click', 'li', function(event) {
self.handlePickerClick(event, $(this));
@@ -393,7 +393,7 @@ var OCdialogs = {
}
var $template = $('<span data-dir="{dir}">{name}</span>');
var paths = path.split('/');
- paths.pop();
+ //paths.pop();
$.each(paths, function(index, dir) {
var dir = paths.pop();
if(dir === '') {