From 86ef7c8185fa15e4a573b4b67efee42335404981 Mon Sep 17 00:00:00 2001 From: Michael Jobst Date: Wed, 2 Nov 2016 20:20:48 +0100 Subject: [PATCH] Fixed disappearing of share info in file view --- apps/files_sharing/js/share.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js index 07ec5f766a..25cbbb019c 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); -