[Pkg-owncloud-commits] [owncloud] 231/394: call the password input field by name

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:13 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit a0b3b65fa3086274b041ea8b1b6a42e7fce62584
Author: Björn Schießle <schiessle at owncloud.com>
Date:   Fri Dec 14 13:25:57 2012 +0100

    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 5242202..a121d44 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -496,7 +496,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'));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list