diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-10-29 17:22:24 +0400 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-29 17:22:24 +0400 |
commit | b56c936212fac36a6f67b978a5323ffc2507f610 (patch) | |
tree | 23dadb622392cef49722d2ce8f9848fed9180d74 /core | |
parent | 1317b7c03dbbd98165ef29b50aa26bb1dd283cba (diff) |
also add new parameter to function calls
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/share.js b/core/js/share.js index 352ad4d4ca8..fe36059e127 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -601,7 +601,7 @@ $(document).ready(function() { var itemSourceName = $('#dropdown').data('item-source-name'); if (this.checked) { // Create a link - OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '', OC.PERMISSION_READ, function(data) { + OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '', OC.PERMISSION_READ, itemSourceName, function(data) { OC.Share.showLink(data.token, null, itemSource); OC.Share.updateIcon(itemType, itemSource); }); @@ -641,7 +641,7 @@ $(document).ready(function() { } // Update the share information - OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '', permissions, function(data) { + OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '', permissions, itemSourceName, function(data) { }); }); @@ -662,7 +662,7 @@ $(document).ready(function() { } - OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '', permissions); + OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '', permissions, itemSourceName); } else { $('#linkPassText').focus(); } @@ -686,7 +686,7 @@ $(document).ready(function() { permissions = OC.PERMISSION_READ; } - OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $('#linkPassText').val(), permissions, function() { + OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $('#linkPassText').val(), permissions, itemSourceName, function() { console.log("password set to: '" + linkPassText.val() +"' by event: " + event.type); linkPassText.val(''); linkPassText.attr('placeholder', t('core', 'Password protected')); |