mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-13 01:08:50 +00:00
See Changelog.
Monotone-Parent: 61d77b3172c7a72376f9b867ab6d96136e763698 Monotone-Revision: c08e4921f6ce7d20b4c9532750d271ac4a7a3e5a Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-08-19T21:26:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2592,14 +2592,17 @@ function onCalendarRemove(event) {
|
||||
}
|
||||
|
||||
function deletePersonalCalendar(folderElement) {
|
||||
var folderId = folderElement.substr(1);
|
||||
var label
|
||||
= labels["Are you sure you want to delete the calendar \"%{0}\"?"].formatted($(folderElement).lastChild.nodeValue.strip());
|
||||
if (window.confirm(label)) {
|
||||
removeFolderRequestCount++;
|
||||
var url = ApplicationBaseURL + "/" + folderId + "/delete";
|
||||
triggerAjaxRequest(url, deletePersonalCalendarCallback, folderId);
|
||||
}
|
||||
showConfirmDialog(_("Confirmation"),
|
||||
_("Are you sure you want to delete the calendar \"%{0}\"?").formatted($(folderElement).lastChild.nodeValue.strip()),
|
||||
deletePersonalCalendarConfirm.bind(folderElement));
|
||||
}
|
||||
|
||||
function deletePersonalCalendarConfirm() {
|
||||
var folderId = this.substr(1);
|
||||
removeFolderRequestCount++;
|
||||
var url = ApplicationBaseURL + "/" + folderId + "/delete";
|
||||
triggerAjaxRequest(url, deletePersonalCalendarCallback, folderId);
|
||||
disposeDialog();
|
||||
}
|
||||
|
||||
function deletePersonalCalendarCallback(http) {
|
||||
|
||||
Reference in New Issue
Block a user