]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correction: failure on sharing when user ID was prefixed by zero
authorRodrigo Hjort <rodrigo.hjort@gmail.com>
Fri, 28 Mar 2014 18:08:59 +0000 (15:08 -0300)
committerRodrigo Hjort <rodrigo.hjort@gmail.com>
Fri, 28 Mar 2014 18:08:59 +0000 (15:08 -0300)
core/js/share.js

index 9ee50ff6963473b11e6d1683dd340565f76d2cfc..ed11e59d284b09e778d1313e37c310ba5dd982eb 100644 (file)
@@ -551,7 +551,7 @@ $(document).ready(function() {
                var itemType = $('#dropdown').data('item-type');
                var itemSource = $('#dropdown').data('item-source');
                var shareType = $li.data('share-type');
-               var shareWith = $li.data('share-with');
+               var shareWith = $li.attr('data-share-with');
                OC.Share.unshare(itemType, itemSource, shareType, shareWith, function() {
                        $li.remove();
                        var index = OC.Share.itemShares[shareType].indexOf(shareWith);
@@ -597,7 +597,7 @@ $(document).ready(function() {
                OC.Share.setPermissions($('#dropdown').data('item-type'),
                        $('#dropdown').data('item-source'),
                        li.data('share-type'),
-                       li.data('share-with'),
+                       li.attr('data-share-with'),
                        permissions);
        });
 
@@ -782,7 +782,7 @@ $(document).ready(function() {
                }
 
                var shareType = $li.data('share-type');
-               var shareWith = $li.data('share-with');
+               var shareWith = $li.attr('data-share-with');
 
                $.post(OC.filePath('core', 'ajax', 'share.php'), {action: action, recipient: shareWith, shareType: shareType, itemSource: itemSource, itemType: itemType}, function(result) {
                        if (result.status !== 'success') {