mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
Improvement to the JavaScript of the login page.
Monotone-Parent: 9cbd91b1acc90a99245d977eebc9cfaa5013f540 Monotone-Revision: bd24937e7ce408db324855032cc7f16806b6d54e Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-11-16T20:11:15 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -33,8 +33,12 @@ function initLogin() {
|
||||
}
|
||||
|
||||
function onFieldKeyDown(event) {
|
||||
if (event.keyCode == Event.KEY_RETURN && $("password").value.length > 0)
|
||||
return onLoginClick (event);
|
||||
if (event.keyCode == Event.KEY_RETURN)
|
||||
if ($("password").value.length > 0
|
||||
&& $("userName").value.length > 0)
|
||||
return onLoginClick (event);
|
||||
else
|
||||
Event.stop(event);
|
||||
}
|
||||
|
||||
function onLoginClick(event) {
|
||||
|
||||
Reference in New Issue
Block a user