summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRodrigo Hjort <rodrigo.hjort@gmail.com>2014-03-28 15:08:59 -0300
committerRodrigo Hjort <rodrigo.hjort@gmail.com>2014-03-28 15:08:59 -0300
commit51b727cfcaa0bf3aa486129d42eab05e0f5af363 (patch)
treeb1abd7b873bfd0f62c1878a467e1d6111349fd58 /core
parent531f3cf1a8aa432f8d85258b237c0dbf8f3f179a (diff)
downloadnextcloud-server-51b727cfcaa0bf3aa486129d42eab05e0f5af363.tar.gz
nextcloud-server-51b727cfcaa0bf3aa486129d42eab05e0f5af363.zip
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 9ee50ff6963..ed11e59d284 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') {