Created a window for address book properties and add the cardDav URL

This commit is contained in:
Alexandre Cloutier
2014-05-15 14:44:31 -04:00
parent d58184af15
commit 07445eb069
12 changed files with 468 additions and 147 deletions

View File

@@ -18,6 +18,20 @@ function onLoadCalendarProperties() {
var okButton = $("okButton");
okButton.observe("click", onOKClick);
Event.observe(document, "keydown", onDocumentKeydown);
}
function onDocumentKeydown(event) {
var target = Event.element(event);
if (target.tagName == "INPUT" || target.tagName == "SELECT") {
if (event.keyCode == Event.KEY_RETURN) {
onOKClick(event);
}
}
if (event.keyCode == Event.KEY_ESC) {
onCancelClick();
}
}
function onCancelClick(event) {