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 c2166c5750
commit 1c7e74a2af

View File

@ -73,6 +73,15 @@ egw_ready.then(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);
});
}
}