]> source.dussan.org Git - nextcloud-server.git/commitdiff
Show (group) after groups in share dropdown
authorRamiro Aparicio <rapariciog@gmail.com>
Mon, 14 Oct 2013 18:17:45 +0000 (20:17 +0200)
committerRamiro Aparicio <rapariciog@gmail.com>
Mon, 14 Oct 2013 18:17:45 +0000 (20:17 +0200)
core/js/share.js

index b472797b3cd98cc277168483a72bc3764d26481a..80e047db002450324b47873f4070f398f78815a6 100644 (file)
@@ -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] = [];
                }