mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-07 09:25:09 +00:00
Disable login button upon submit (instead of hiding it)
Monotone-Parent: 05432797f1348e54ed2d395a86f69593bb3e3d90 Monotone-Revision: 7d7fda1fe8fdf96d8a846378379c8a49661b7e7b Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-07-13T21:58:44 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -31,7 +31,9 @@ function onLoginClick(event) {
|
||||
var language = $("language");
|
||||
|
||||
if (userName.length > 0) {
|
||||
this.hide();
|
||||
$("loginErrorMessage").hide();
|
||||
$("noCookiesErrorMessage").hide();
|
||||
this.disabled = true;
|
||||
startAnimation($("animation"));
|
||||
|
||||
if (typeof(loginSuffix) != "undefined"
|
||||
@@ -76,7 +78,7 @@ function onLoginCallback(http) {
|
||||
if (cookieExists === 0) {
|
||||
loginErrorMessage.hide();
|
||||
noCookiesErrorMessage.show();
|
||||
submitBtn.show();
|
||||
submitBtn.disabled = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -112,7 +114,7 @@ function onLoginCallback(http) {
|
||||
else {
|
||||
loginErrorMessage.show();
|
||||
noCookiesErrorMessage.hide();
|
||||
submitBtn.show();
|
||||
submitBtn.disabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user