From 97b2782c5b6970a0d4115b6c48817ece7c60b1c3 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 25 Nov 2016 19:23:17 +0100 Subject: [PATCH] use public share fileclient when available Signed-off-by: Robin Appelman --- core/js/oc-dialogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 3b5c1ae7199..f811322b099 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -168,7 +168,7 @@ var OCdialogs = { return; } this.filepicker.loading = true; - this.filepicker.filesClient = OC.Files.getClient(); + this.filepicker.filesClient = (OCA.Sharing && OCA.Sharing.PublicApp && OCA.Sharing.PublicApp.fileList)? OCA.Sharing.PublicApp.fileList.filesClient: OC.Files.getClient(); $.when(this._getFilePickerTemplate()).then(function($tmpl) { self.filepicker.loading = false; var dialogName = 'oc-dialog-filepicker-content'; -- 2.39.5