Dialogs: Make slug show last dir emphasized.
This commit is contained in:
parent
152e275c8a
commit
e60d86bdd1
|
@ -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; }
|
||||
|
|
|
@ -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 === '') {
|
||||
|
|
Loading…
Reference in New Issue