Monotone-Parent: 8f81ef5493969df98077f91eb3e21b3c0da2510c
Monotone-Revision: 100a272abbd26f9913b032fcd40a1851360e76fb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-03-11T13:43:45 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
dce4fd7896
commit
bb48a95ab2
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue