Show Login-Button when user+pw are autocompleted, fixes oc-1068
This commit is contained in:
parent
14c5d08a3f
commit
a3b4cb205c
|
@ -402,11 +402,7 @@ $(document).ready(function(){
|
||||||
//use infield labels
|
//use infield labels
|
||||||
$("label.infield").inFieldLabels();
|
$("label.infield").inFieldLabels();
|
||||||
|
|
||||||
// hide log in button etc. when form fields not filled
|
checkShowCredentials = function() {
|
||||||
$('#submit').hide();
|
|
||||||
$('#remember_login').hide();
|
|
||||||
$('#remember_login+label').hide();
|
|
||||||
$('input#user, input#password').keyup(function() {
|
|
||||||
var empty = false;
|
var empty = false;
|
||||||
$('input#user, input#password').each(function() {
|
$('input#user, input#password').each(function() {
|
||||||
if ($(this).val() == '') {
|
if ($(this).val() == '') {
|
||||||
|
@ -422,7 +418,10 @@ $(document).ready(function(){
|
||||||
$('#remember_login').show();
|
$('#remember_login').show();
|
||||||
$('#remember_login+label').fadeIn();
|
$('#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) {
|
$('#settings #expand').keydown(function(event) {
|
||||||
if (event.which == 13 || event.which == 32) {
|
if (event.which == 13 || event.which == 32) {
|
||||||
|
|
Loading…
Reference in New Issue