Monotone-Parent: b76970a2508695482a2184b33fcd48d53793fd10

Monotone-Revision: 9c6b1538458962e41dfc4b0be00689fde420820f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-03-07T22:10:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-03-07 22:10:03 +00:00
parent f68812e90f
commit e4213b2a70
2 changed files with 8 additions and 1 deletions
@@ -127,11 +127,18 @@ function onFnNewValue(event) {
return true;
}
function onEditorCancelClick(event) {
preventDefault(event);
window.close();
}
function initEditorForm() {
displayNameChanged = ($("fn").value.length > 0);
$("fn").onkeydown = onFnKeyDown;
$("sn").onkeyup = onFnNewValue;
$("givenName").onkeyup = onFnNewValue;
$("cancelButton").observe("click", onEditorCancelClick);
}
FastInit.addOnLoad(initEditorForm);