summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-29 13:58:39 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-29 14:06:55 -0400
commit26501a0bc8c7c4fa8343f5fa0c6e42bae1c7f298 (patch)
treec91fde3b30114e7c7c00d004b7719e2652147cb2 /core/js
parent224e55e59091d10c6bb3b6f8bf7bf05c5ff6999d (diff)
downloadnextcloud-server-26501a0bc8c7c4fa8343f5fa0c6e42bae1c7f298.tar.gz
nextcloud-server-26501a0bc8c7c4fa8343f5fa0c6e42bae1c7f298.zip
Delete old link if user sets a password
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js
index cc862b1c5f5..59ff25ee763 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -417,8 +417,6 @@ $(document).ready(function() {
if (event.keyCode == 13) {
var itemType = $('#dropdown').data('item-type');
var itemSource = $('#dropdown').data('item-source');
- // TODO Do this internally
- OC.Share.unshare(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, '');
OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $(this).val(), OC.Share.PERMISSION_READ);
}
});