summaryrefslogtreecommitdiffstats
path: root/core/js
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/js
parent152e275c8a780c220c5022ef059dd7b12adc7cf1 (diff)
downloadnextcloud-server-e60d86bdd1b45e29bf09bacf48bab8d847c54a72.tar.gz
nextcloud-server-e60d86bdd1b45e29bf09bacf48bab8d847c54a72.zip
Dialogs: Make slug show last dir emphasized.
Diffstat (limited to 'core/js')
-rw-r--r--core/js/oc-dialogs.js4
1 files changed, 2 insertions, 2 deletions
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 === '') {