[Pkg-owncloud-commits] [owncloud] 18/394: set password if user leaves password field (issue #57)
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:17 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 10e45481bec2d9003f6c6ad89591b2d968a05882
Author: Björn Schießle <schiessle at owncloud.com>
Date: Sun Oct 28 13:47:29 2012 +0100
set password if user leaves password field (issue #57)
---
core/js/share.js | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/core/js/share.js b/core/js/share.js
index 2f9f100..5f5bfb0 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -475,15 +475,13 @@ $(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'));
+ });
});
$('#expirationCheckbox').live('click', function() {
--
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