aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-11-25 19:23:17 +0100
committerRobin Appelman <robin@icewind.nl>2016-11-25 19:23:17 +0100
commit97b2782c5b6970a0d4115b6c48817ece7c60b1c3 (patch)
tree71c15e35da30af30c94229f149c20fe014b77e78 /core/js
parent47646794b9426f40c12719d78c5a92a71570b4b2 (diff)
downloadnextcloud-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.js2
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';