From da33d47e69a2981551eccc40996a4a8d36ae6546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Sat, 28 Sep 2019 17:25:08 +0200 Subject: [PATCH] Append / to data(path) for folder content request MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/src/OC/dialogs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 04bac6d63d..ca472a1e14 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -1,6 +1,6 @@ /* global alert */ -/* +/** * @copyright 2019 Christoph Wurst * * @author 2019 Christoph Wurst @@ -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');