summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-12-14 13:25:57 +0100
committerBjörn Schießle <schiessle@owncloud.com>2012-12-18 13:40:19 +0100
commit3adfb91ad895dc9371834c0e42cfd3605fdd7054 (patch)
treed103375c56ed2c2875f27e0e7a505e619f26ff4b /core
parentd873f0da3500e1f9eef89d4b73ec635f9c927636 (diff)
downloadnextcloud-server-3adfb91ad895dc9371834c0e42cfd3605fdd7054.tar.gz
nextcloud-server-3adfb91ad895dc9371834c0e42cfd3605fdd7054.zip
call the password input field by name
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js2
1 files changed, 1 insertions, 1 deletions
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'));