mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-08 06:48:51 +00:00
Monotone-Parent: 8f81ef5493969df98077f91eb3e21b3c0da2510c
Monotone-Revision: 100a272abbd26f9913b032fcd40a1851360e76fb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-03-11T13:43:45 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -43,12 +43,16 @@ function initLogin() {
|
||||
}
|
||||
|
||||
function onFieldKeyDown(event) {
|
||||
if (event.keyCode == Event.KEY_RETURN)
|
||||
if (event.keyCode == Event.KEY_RETURN) {
|
||||
if ($("password").value.length > 0
|
||||
&& $("userName").value.length > 0)
|
||||
return onLoginClick (event);
|
||||
else
|
||||
Event.stop(event);
|
||||
} else if (IsCharacterKey(event.keyCode)
|
||||
|| event.keyCode == Event.KEY_BACKSPACE) {
|
||||
SetLogMessage("errorMessage", null);
|
||||
}
|
||||
}
|
||||
|
||||
function onLoginClick(event) {
|
||||
@@ -58,7 +62,6 @@ function onLoginClick(event) {
|
||||
var language = $("language");
|
||||
|
||||
if (userName.length > 0) {
|
||||
SetLogMessage("errorMessage", null);
|
||||
this.disabled = true;
|
||||
startAnimation($("animation"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user