summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorMichael Jobst <mjobst@necls.com>2016-11-02 20:20:48 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-04 10:37:30 +0100
commitbf9376a7f6743e846c7e507a9e9b01f80966a22f (patch)
treea634ce512ee6585bae3197b191403174cadba461 /apps/files_sharing/js
parent27304e5694fdec3eebf0700f2a82d9d80e928558 (diff)
downloadnextcloud-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.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);
-