[stable17] Append / to data(path) for folder content request (#17311)

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

View file

@ -1,6 +1,6 @@
/* global alert */
/*
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@ -344,8 +344,8 @@ const Dialogs = {
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');