Monotone-Parent: eacf14246d4dde8712de638d29d8a7cdc77fac45

Monotone-Revision: 24072b56a700014098e8df3a7ba0e45f26e74a2a

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-08-09T18:27:38
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-08-09 18:27:38 +00:00
parent 0456ac41f5
commit db44f9b8e0
4 changed files with 20 additions and 7 deletions
+6 -1
View File
@@ -272,7 +272,7 @@ function actionContactCallback(http) {
var error = html.select("p").first().firstChild.nodeValue.trim();
log("actionContactCallback failed: error " + http.status + " (" + error + ")");
if (parseInt(http.status) == 403)
window.alert(labels["You cannot delete the selected contact(s)"]);
window.alert(labels["You don't have the required privileges to perform the operation."]);
else if (error)
window.alert(labels[error]);
refreshCurrentFolder();
@@ -450,6 +450,11 @@ function onContactDeleteEventCallback(http) {
var row = $(http.callbackData);
row.parentNode.removeChild(row);
}
else if (parseInt(http.status) == 403) {
var row = $(http.callbackData);
var displayName = row.down("TD.displayName").firstChild.nodeValue.trim();
window.alert(labels["You cannot delete the card of \"%{0}\"."].formatted(displayName));
}
}
}