prefer [Login] button below over maybe existing SAML login button above

This commit is contained in:
ralf 2022-02-21 21:19:41 +02:00
parent a85116e28b
commit 24390a135a

View File

@ -73,6 +73,15 @@ egw_LAB.wait(function()
this.form.method = 'get';
jQuery(this.form).append('<input type="hidden" name="auth" value="saml"/>');
});
// prefer [Login] button below over maybe existing SAML login button above
jQuery('input').on('keypress', function(e)
{
if (e.which == 13)
{
this.form.submit();
return false;
}
});
//cleanup darkmode session value
egw.setSessionItem('api', 'darkmode','');
@ -91,4 +100,4 @@ if ('serviceWorker' in navigator) {
.catch(function(error) {
console.log('Service worker registration failed, error:', error);
});
}
}