Monotone-Revision: d166194697bcb5739b7984b3f4bff186a687d742 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-05T17:56:00 Monotone-Branch: ca.inverse.sogo
20 lines
523 B
JavaScript
20 lines
523 B
JavaScript
function initLogin() {
|
|
var submit = $("submit");
|
|
var userName = $("userName");
|
|
userName.focus();
|
|
Event.observe(submit, "click", onLoginClick);
|
|
|
|
var image = $("preparedAnimation");
|
|
image.parentNode.removeChild(image);
|
|
}
|
|
|
|
function onLoginClick(event) {
|
|
startAnimation($("loginButton"), $("submit"));
|
|
|
|
var loginString = $("userName").value + ":" + $("password").value;
|
|
document.cookie = ("0xHIGHFLYxSOGo-0.9 = basic" + loginString.base64encode()
|
|
+ "; path=/");
|
|
}
|
|
|
|
addEvent(window, 'load', initLogin);
|