Merge pull request #2341 from nextcloud/filepicker-public-share

use public share fileclient when available
This commit is contained in:
Lukas Reschke 2016-11-28 13:58:07 +01:00 committed by GitHub
commit 518e2edba4

View 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';