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 коммит произвёл GitHub
Родитель d02296d42f 97b2782c5b
Коммит 518e2edba4
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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