diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/oc-dialogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |