Skip to content
Snippets Groups Projects
Commit 1ff328ae authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #1823 from nextcloud/filepicker-folder-fix

Fix picking a folder with the filepicker
parents 60fa82d9 fb9e5006
No related branches found
No related tags found
No related merge requests found
...@@ -194,7 +194,10 @@ var OCdialogs = { ...@@ -194,7 +194,10 @@ var OCdialogs = {
}); });
} else { } else {
datapath = self.$filePicker.data('path'); 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); callback(datapath);
self.$filePicker.ocdialog('close'); self.$filePicker.ocdialog('close');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment