21ab040534
Monotone-Parent: 244f630f9b5b56de06c1348c5371d785e2f3d3a3 Monotone-Revision: 3a4ed372ee2495e9c893842ebe71384ea3ebcd65 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-03-12T21:09:14 Monotone-Branch: ca.inverse.sogo
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
|
|
|
|
function onCancelButtonClick(event) {
|
|
window.close();
|
|
}
|
|
|
|
function onThisButtonClick(event) {
|
|
if (action == 'edit')
|
|
window.opener.performEventEdition(calendarFolder, componentName,
|
|
recurrenceName);
|
|
else if (action == 'delete')
|
|
window.opener.performEventDeletion(calendarFolder, componentName,
|
|
recurrenceName);
|
|
else
|
|
window.alert("Invalid action: " + action);
|
|
|
|
window.close();
|
|
}
|
|
|
|
function onAllButtonClick(event) {
|
|
if (action == 'edit')
|
|
window.opener.performEventEdition(calendarFolder, componentName);
|
|
else if (action == 'delete')
|
|
window.opener.performEventDeletion(calendarFolder, componentName);
|
|
else
|
|
window.alert("Invalid action: " + action);
|
|
|
|
window.close();
|
|
}
|
|
|
|
function onOccurenceDialogLoad() {
|
|
var thisButton = $("thisButton");
|
|
thisButton.observe("click", onThisButtonClick);
|
|
|
|
var allButton = $("allButton");
|
|
allButton.observe("click", onAllButtonClick);
|
|
|
|
var cancelButton = $("cancelButton");
|
|
cancelButton.observe("click", onCancelButtonClick);
|
|
}
|
|
|
|
document.observe("dom:loaded", onOccurenceDialogLoad);
|