Monotone-Parent: 69a8d2cacd25c46b70eb478efad9561bfba7a390

Monotone-Revision: 408ae95acfcd0bdbf903540439a12eaacb285310

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-03-18T14:36:06
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-03-18 14:36:06 +00:00
parent 607e43034c
commit c9f18f2b85
7 changed files with 21 additions and 2 deletions
+9 -2
View File
@@ -1880,8 +1880,15 @@ function onCalendarRemove(event) {
var owner = nodes[i].getAttribute("owner");
var folderId = nodes[i].getAttribute("id");
if (owner == UserLogin) {
var folderIdElements = folderId.split(":");
deletePersonalCalendar(folderIdElements[0]);
if (folderId == "/personal") {
var label = labels["You cannot remove nor unsubscribe from your"
+ " personal calendar."];
window.alert(label);
}
else {
var folderIdElements = folderId.split(":");
deletePersonalCalendar(folderIdElements[0]);
}
}
else
unsubscribeFromFolder(folderId, owner,