]> source.dussan.org Git - nextcloud-server.git/commitdiff
only check our own input fields when determining to show the login button
authorRobin Appelman <icewind@owncloud.com>
Wed, 16 May 2012 23:17:44 +0000 (01:17 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 16 May 2012 23:17:44 +0000 (01:17 +0200)
fixes a problem with browser plugins adding hidden inputs

core/js/js.js

index 90f1207780d0eb75efb57760b4e6d02977093f48..89a20a529f348e8806c41285e177781ff77df242 100644 (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;
                        }