mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-11 13:29:49 +00:00
see changelog
Monotone-Parent: 399ddcc3b0b509af5a4d05cd434475774187e48c Monotone-Revision: 0cee430f2a0dfc64e4d3616db2934929c59abbbf Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2007-12-03T14:13:10 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -81,12 +81,19 @@ function editEvent() {
|
||||
if (listOfSelection) {
|
||||
var nodes = listOfSelection.getSelectedRows();
|
||||
|
||||
if (nodes.length == 0) {
|
||||
window.alert(labels["Please select an event or a task."]);
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i = 0; i < nodes.length; i++)
|
||||
_editEventId(nodes[i].getAttribute("id"),
|
||||
nodes[i].calendar);
|
||||
} else if (selectedCalendarCell) {
|
||||
_editEventId(selectedCalendarCell[0].cname,
|
||||
selectedCalendarCell[0].calendar);
|
||||
_editEventId(selectedCalendarCell[0].cname,
|
||||
selectedCalendarCell[0].calendar);
|
||||
} else {
|
||||
window.alert(labels["Please select an event or a task."]);
|
||||
}
|
||||
|
||||
return false; /* stop following the link */
|
||||
@@ -135,6 +142,8 @@ function deleteEvent() {
|
||||
}
|
||||
_batchDeleteEvents();
|
||||
}
|
||||
} else {
|
||||
window.alert(labels["Please select an event or a task."]);
|
||||
}
|
||||
}
|
||||
else if (selectedCalendarCell) {
|
||||
@@ -150,7 +159,7 @@ function deleteEvent() {
|
||||
}
|
||||
}
|
||||
else
|
||||
window.alert("no selection");
|
||||
window.alert(labels["Please select an event or a task."]);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user