diff options
author | Robin Appelman <robin@icewind.nl> | 2016-10-20 15:42:57 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-10-20 15:42:57 +0200 |
commit | fb9e500698f2439986c143a474a76605a35d59f0 (patch) | |
tree | d03ad003d354f9da09599a5e55115bc51e0d611a | |
parent | ed4ed7911a9329462fef02c2d50709b3f092538e (diff) | |
download | nextcloud-server-fb9e500698f2439986c143a474a76605a35d59f0.tar.gz nextcloud-server-fb9e500698f2439986c143a474a76605a35d59f0.zip |
Fix picking a folder with the filepicker
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | core/js/oc-dialogs.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 7a7876bf30f..bbec814aa3a 100644 --- a/core/js/oc-dialogs.js +++ b/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'); |