diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-12-02 12:39:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-02 12:39:26 +0300 |
commit | 3a3e2721020061f0c607d382d8a977778ceb7563 (patch) | |
tree | c7c9483c3eb61c263b7eb4588d65e90b58b1a64c | |
parent | d0858a4a036208763667b1cad840cb68546933d9 (diff) | |
parent | 8f5b9880cff029126ae6b1f2fcc33e958ccc27bf (diff) |
Merge pull request #2461 from nextcloud/stable9-2010
[stable9] Fixed disappearing of share info in file view
-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 5bfc8e1d4a2..577ac5389f8 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; }; @@ -246,4 +252,3 @@ })(); OC.Plugins.register('OCA.Files.FileList', OCA.Sharing.Util); - |