Fixed disappearing of share info in file view

This commit is contained in:
Michael Jobst 2016-11-02 20:20:48 +01:00 committed by Morris Jobke
parent 1c4a1b8807
commit 86ef7c8185
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 6 additions and 1 deletions

View File

@ -71,6 +71,12 @@
var fileInfo = oldElementToFile.apply(this, arguments);
fileInfo.sharePermissions = $el.attr('data-share-permissions') || undefined;
fileInfo.shareOwner = $el.attr('data-share-owner') || undefined;
if( $el.attr('data-share-types')){
var shareTypes = $el.attr('data-share-types').split(',');
fileInfo.shareTypes = shareTypes;
}
return fileInfo;
};
@ -246,4 +252,3 @@
})();
OC.Plugins.register('OCA.Files.FileList', OCA.Sharing.Util);