diff options
author | Michael Jobst <mjobst@necls.com> | 2016-11-02 20:20:48 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-04 10:37:30 +0100 |
commit | bf9376a7f6743e846c7e507a9e9b01f80966a22f (patch) | |
tree | a634ce512ee6585bae3197b191403174cadba461 /apps/files_sharing/js | |
parent | 27304e5694fdec3eebf0700f2a82d9d80e928558 (diff) | |
download | nextcloud-server-bf9376a7f6743e846c7e507a9e9b01f80966a22f.tar.gz nextcloud-server-bf9376a7f6743e846c7e507a9e9b01f80966a22f.zip |
Fixed disappearing of share info in file view
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/share.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 5dd75c94fdb..64fc7ef7296 100644 --- a/apps/files_sharing/js/share.js +++ b/apps/files_sharing/js/share.js @@ -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; }; @@ -247,4 +253,3 @@ })(); OC.Plugins.register('OCA.Files.FileList', OCA.Sharing.Util); - |