From a3b4cb205c8cf95e483decb6c4208789bd98e84c Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 3 Aug 2012 13:15:15 +0200 Subject: [PATCH] Show Login-Button when user+pw are autocompleted, fixes oc-1068 --- core/js/js.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 8a60f70e1d..dec6ea047c 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -402,11 +402,7 @@ $(document).ready(function(){ //use infield labels $("label.infield").inFieldLabels(); - // hide log in button etc. when form fields not filled - $('#submit').hide(); - $('#remember_login').hide(); - $('#remember_login+label').hide(); - $('input#user, input#password').keyup(function() { + checkShowCredentials = function() { var empty = false; $('input#user, input#password').each(function() { if ($(this).val() == '') { @@ -422,7 +418,10 @@ $(document).ready(function(){ $('#remember_login').show(); $('#remember_login+label').fadeIn(); } - }); + } + // hide log in button etc. when form fields not filled + checkShowCredentials(); + $('input#user, input#password').keyup(checkShowCredentials); $('#settings #expand').keydown(function(event) { if (event.which == 13 || event.which == 32) {