]> source.dussan.org Git - nextcloud-server.git/commitdiff
call the password input field by name
authorBjörn Schießle <schiessle@owncloud.com>
Fri, 14 Dec 2012 12:25:57 +0000 (13:25 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Tue, 18 Dec 2012 12:40:19 +0000 (13:40 +0100)
core/js/share.js

index 98ceceb3a4927d31e31e4cc7ed2abf25276ea217..bb3ec010ff51c13ccaac9e321fd989e9e42e705f 100644 (file)
@@ -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'));