diff options
author | Ramiro Aparicio <rapariciog@gmail.com> | 2013-10-14 20:17:45 +0200 |
---|---|---|
committer | Ramiro Aparicio <rapariciog@gmail.com> | 2013-10-14 20:17:45 +0200 |
commit | 8ac518bb3e0cf51bdf6c3dcf2554cc72c2f398c9 (patch) | |
tree | 4cb291f61e9561a62fa0a9a0f5facaccb7ba48d6 /core/js | |
parent | 4ae1d08241db80f24f2459340dd3be6d42406f1f (diff) | |
download | nextcloud-server-8ac518bb3e0cf51bdf6c3dcf2554cc72c2f398c9.tar.gz nextcloud-server-8ac518bb3e0cf51bdf6c3dcf2554cc72c2f398c9.zip |
Show (group) after groups in share dropdown
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index b472797b3cd..80e047db002 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -262,7 +262,7 @@ OC.Share={ // Default permissions are Edit (CRUD) and Share var permissions = OC.PERMISSION_ALL; OC.Share.share(itemType, itemSource, shareType, shareWith, permissions, function() { - OC.Share.addShareWith(shareType, shareWith, selected.item.label, permissions, possiblePermissions); + OC.Share.addShareWith(shareType, shareWith, selected.item.value.shareWith, permissions, possiblePermissions); $('#shareWith').val(''); OC.Share.updateIcon(itemType, itemSource); }); @@ -303,6 +303,9 @@ OC.Share={ }); }, addShareWith:function(shareType, shareWith, shareWithDisplayName, permissions, possiblePermissions, mailSend, collection) { + if (shareType === 1) { + shareWithDisplayName = shareWithDisplayName + " (" + t('core', 'group') + ')'; + } if (!OC.Share.itemShares[shareType]) { OC.Share.itemShares[shareType] = []; } |