mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
Monotone-Parent: 52de90085e2d18ded0d0c315e7148e1c72feb785
Monotone-Revision: 99d14630f5294d40da6680a39d69b6f1b7853938 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-17T21:12:43 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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);
|
||||
}
|
||||
|
||||
FastInit.addOnLoad(onOccurenceDialogLoad);
|
||||
Reference in New Issue
Block a user