]> source.dussan.org Git - nextcloud-server.git/commitdiff
use public share fileclient when available 2341/head
authorRobin Appelman <robin@icewind.nl>
Fri, 25 Nov 2016 18:23:17 +0000 (19:23 +0100)
committerRobin Appelman <robin@icewind.nl>
Fri, 25 Nov 2016 18:23:17 +0000 (19:23 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
core/js/oc-dialogs.js

index 3b5c1ae719992037e36ca333375b717b8de74801..f811322b099ceb3ad386f1cc448087e3400f3b2e 100644 (file)
@@ -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';