[stable16] Append / to data(path) for folder content request (#17310)

[stable16] Append / to data(path) for folder content request
This commit is contained in:
John Molakvoæ 2019-10-04 18:09:41 +02:00 committed by GitHub
commit f1cee77582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,8 +329,8 @@ var OCdialogs = {
if (checkInput()) {
var newname = $input.val();
self.filepicker.filesClient.createDirectory(self.$filePicker.data('path') + "/" + newname).always(function (status) {
self._fillFilePicker(self.$filePicker.data('path') + newname );
self.filepicker.filesClient.createDirectory(self.$filePicker.data('path') + '/' + newname).always(function (status) {
self._fillFilePicker(self.$filePicker.data('path') + '/' + newname );
});
OC.hideMenus();
self.$filePicker.ocdialog('unsetEnterCallback');