Dialogs: Loose up-button.

This commit is contained in:
Thomas Tanghus 2013-05-17 06:48:24 +02:00
parent e60d86bdd1
commit a0b79f5649
3 changed files with 0 additions and 16 deletions

View File

@ -382,7 +382,6 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin
.ui-datepicker-prev,.ui-datepicker-next{ border:1px solid #ddd; background:#fff; }
/* ---- DIALOGS ---- */
#oc-dialog-filepicker-content .dirup {width:4%; font-weight: bold;}
#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; }

View File

@ -196,10 +196,8 @@ var OCdialogs = {
self.$filePicker.ready(function() {
self.$filelist = self.$filePicker.find('.filelist');
self.$dirUp = self.$filePicker.find('.dirup');
self.$dirTree = self.$filePicker.find('.dirtree');
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));
});
@ -417,18 +415,6 @@ var OCdialogs = {
var dir = $(event.target).data('dir');
self.fillFilePicker(dir);
},
/**
* go one directory up
*/
filepickerDirUp:function(event) {
var self = event.data;
var old_path = self.$filePicker.data('path');
if (old_path !== '') {
var splitted_path = old_path.split('/');
splitted_path.pop();
self.fillFilePicker(splitted_path.join('/'));
}
},
/**
* handle clicks made in the filepicker
*/

View File

@ -1,5 +1,4 @@
<div id="{dialog_name}" title="{title}">
<button class="dirup"></button>
<span class="dirtree"></span>
<ul class="filelist">
<li data-entryname="{filename}" data-type="{type}">