mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-14 21:04:53 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user