diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-05-17 01:17:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-05-17 01:17:44 +0200 |
commit | 58adeaa80a65cb307736eb8f0040ea18b468e419 (patch) | |
tree | c45485f3489174d605a05aa588e64f5eb5c91fe7 | |
parent | aac9629e88a572341775720109e783ed70858cc2 (diff) | |
download | nextcloud-server-58adeaa80a65cb307736eb8f0040ea18b468e419.tar.gz nextcloud-server-58adeaa80a65cb307736eb8f0040ea18b468e419.zip |
only check our own input fields when determining to show the login button
fixes a problem with browser plugins adding hidden inputs
-rw-r--r-- | core/js/js.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js index 90f1207780d..89a20a529f3 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -406,9 +406,9 @@ $(document).ready(function(){ $('#submit').hide(); $('#remember_login').hide(); $('#remember_login+label').hide(); - $('#body-login input').keyup(function() { + $('input#user, input#password').keyup(function() { var empty = false; - $('#body-login input').each(function() { + $('input#user, input#password').each(function() { if ($(this).val() == '') { empty = true; } |