diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-25 19:23:17 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-25 19:23:17 +0100 |
commit | 97b2782c5b6970a0d4115b6c48817ece7c60b1c3 (patch) | |
tree | 71c15e35da30af30c94229f149c20fe014b77e78 /core/js | |
parent | 47646794b9426f40c12719d78c5a92a71570b4b2 (diff) | |
download | nextcloud-server-97b2782c5b6970a0d4115b6c48817ece7c60b1c3.tar.gz nextcloud-server-97b2782c5b6970a0d4115b6c48817ece7c60b1c3.zip |
use public share fileclient when available
Signed-off-by: Robin Appelman <robin@icewind.nl>
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'; |