summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-01 12:57:16 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-01 12:57:16 +0200
commitbe0660f84f3115a2a21b25e76c1c78ecd5fec3f1 (patch)
tree932126146b756f2226a07144da945c37f80d941f /core
parent5807681c09d8628ab617e1fbe0f05e874240cd6c (diff)
parent51b727cfcaa0bf3aa486129d42eab05e0f5af363 (diff)
downloadnextcloud-server-be0660f84f3115a2a21b25e76c1c78ecd5fec3f1.tar.gz
nextcloud-server-be0660f84f3115a2a21b25e76c1c78ecd5fec3f1.zip
Merge pull request #7943 from hjort/master
Correction: failure on sharing when user ID was prefixed by zero
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/share.js b/core/js/share.js
index e769edd0a21..ef71cc7999a 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -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') {