summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-30 14:47:00 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-20 18:24:42 +0100
commit271684dcfec16122b88e03780b41af7120f27e45 (patch)
treeb47ac7d40f4d3cf356f10294654c831357de0216 /apps
parentd6e89a9a28986a57010a31701faa7d1981b5a5c1 (diff)
downloadnextcloud-server-271684dcfec16122b88e03780b41af7120f27e45.tar.gz
nextcloud-server-271684dcfec16122b88e03780b41af7120f27e45.zip
update share owner
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/share.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 36de452a55e..b795b921903 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -5,6 +5,14 @@ $(document).ready(function() {
if (typeof OC.Share !== 'undefined' && typeof FileActions !== 'undefined' && !disableSharing) {
$('#fileList').on('fileActionsReady',function(){
+
+ var allShared = $('*[data-share-owner]').find('[data-Action="Share"]');
+ allShared.addClass('permanent');
+ allShared.find('span').text(function(){
+ $owner = $(this).closest('tr').attr('data-share-owner');
+ return ' ' + t('files_sharing', 'shared by {owner}', {owner: $owner});
+ });
+
if (!sharesLoaded){
OC.Share.loadIcons('file');
// assume that we got all shares, so switching directories