mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-19 13:25:57 +00:00
Created a window for address book properties and add the cardDav URL
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user