aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-04 13:29:19 +0100
committerGitHub <noreply@github.com>2016-11-04 13:29:19 +0100
commita77e7075f627c82a610a2388360488075c850e28 (patch)
tree24a27fc7c0ee85e3c5e452b1b5aa3264eebd9019
parent6a156b795c38e0785dc19740aa6ca692b9903560 (diff)
parentbf9376a7f6743e846c7e507a9e9b01f80966a22f (diff)
downloadnextcloud-server-a77e7075f627c82a610a2388360488075c850e28.tar.gz
nextcloud-server-a77e7075f627c82a610a2388360488075c850e28.zip
Merge pull request #2010 from nextcloud/downstream-26534
[oC] Fixed disappearing of share info in file view
-rw-r--r--apps/files_sharing/js/share.js7
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);
-