aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 17:10:31 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 17:10:31 +0100
commitd7abd44dea9eb37312615e7d737acecf945a38fe (patch)
treeb254ea8e226a9089d08d58132a5b365b6e9ee753 /core/js
parent99ba05e766defb746284d6e93829fa81eebd530c (diff)
parent7af8c6c3cbf00444b81a6d3d0c4cede983ff8edc (diff)
downloadnextcloud-server-d7abd44dea9eb37312615e7d737acecf945a38fe.tar.gz
nextcloud-server-d7abd44dea9eb37312615e7d737acecf945a38fe.zip
merge breadcrumb root into navigation
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 7d8799edf51..00e5ef3eed6 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -483,15 +483,14 @@ $(document).ready(function() {
$('#linkPass').toggle('blind');
});
- $('#linkPassText').live('keyup', function(event) {
- if (event.keyCode == 13) {
- var itemType = $('#dropdown').data('item-type');
- var itemSource = $('#dropdown').data('item-source');
- OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $(this).val(), OC.PERMISSION_READ, function() {
- $('#linkPassText').val('');
- $('#linkPassText').attr('placeholder', t('core', 'Password protected'));
- });
- }
+ $('#linkPassText').live('focusout', function(event) {
+ var itemType = $('#dropdown').data('item-type');
+ var itemSource = $('#dropdown').data('item-source');
+ OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $(this).val(), OC.PERMISSION_READ, function() {
+ $('#linkPassText').val('');
+ $('#linkPassText').attr('placeholder', t('core', 'Password protected'));
+ });
+ $('#linkPassText').attr('placeholder', t('core', 'Password protected'));
});
$('#expirationCheckbox').live('click', function() {