Browse Source

Fix picking a folder with the filepicker

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/1823/head
Robin Appelman 9 years ago
parent
commit
fb9e500698
No known key found for this signature in database GPG Key ID: 425003AC385454C5
  1. 5
      core/js/oc-dialogs.js

5
core/js/oc-dialogs.js

@ -193,7 +193,10 @@ var OCdialogs = {
});
} else {
datapath = self.$filePicker.data('path');
datapath += '/' + self.$filelist.find('tr.filepicker_element_selected').data('entryname');
var selectedName = self.$filelist.find('tr.filepicker_element_selected').data('entryname');
if (selectedName) {
datapath += '/' + selectedName;
}
}
callback(datapath);
self.$filePicker.ocdialog('close');

Loading…
Cancel
Save