Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-11-11 12:30:20 +0300
committerGitHub <noreply@github.com>2016-11-11 12:30:20 +0300
commit7199adaa783827f4258fcf9917c0756c261235f4 (patch)
tree2b23ea627bbca8a2bb59be601059ddfcab8f27ef /apps
parentb01f1eb3528cedfaaacec737c0152ce5e0f635b9 (diff)
parent8036aa57e4d934de0bd798c0f165c3430c8725bc (diff)
Merge pull request #26536 from owncloud/stable9-fix_disappearing_share_info-patch
[stable9] Fixed disappearing of share info in file view
Diffstat (limited to 'apps')
-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 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);
-