From 58adeaa80a65cb307736eb8f0040ea18b468e419 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Thu, 17 May 2012 01:17:44 +0200
Subject: [PATCH] only check our own input fields when determining to show the
 login button

fixes a problem with browser plugins adding hidden inputs
---
 core/js/js.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/js/js.js b/core/js/js.js
index 90f1207780..89a20a529f 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;
 			}
-- 
GitLab