only check our own input fields when determining to show the login button

fixes a problem with browser plugins adding hidden inputs
This commit is contained in:
Robin Appelman 2012-05-17 01:17:44 +02:00
parent aac9629e88
commit 58adeaa80a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}