From 3adfb91ad895dc9371834c0e42cfd3605fdd7054 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Fri, 14 Dec 2012 13:25:57 +0100 Subject: [PATCH] call the password input field by name --- core/js/share.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/share.js b/core/js/share.js index 98ceceb3a49..bb3ec010ff5 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -535,7 +535,7 @@ $(document).ready(function() { if ( $('#linkPassText').val() != '' && (event.type == 'focusout' || 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() { + OC.Share.share(itemType, itemSource, OC.Share.SHARE_TYPE_LINK, $('#linkPassText').val(), OC.PERMISSION_READ, function() { console.log("password set to: '" + $('#linkPassText').val() +"' by event: " + event.type); $('#linkPassText').val(''); $('#linkPassText').attr('placeholder', t('core', 'Password protected')); -- 2.39.5