Monotone-Parent: 30d54dc507398dda32b17cb2c4b9c8e6b601087d

Monotone-Revision: 02e6aaa1be72203deecd9d1b0f94d9491729cafc

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-09-16T20:25:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-09-16 20:25:47 +00:00
parent d1bfb3572d
commit 9e29b464cb
14 changed files with 98 additions and 81 deletions
+11 -11
View File
@@ -1025,7 +1025,7 @@ function folderSubscriptionCallback(http) {
http.callbackData["method"](http.callbackData["data"]);
}
else
window.alert(label ("Unable to subscribe to that folder!"));
window.alert(getLabel("Unable to subscribe to that folder!"));
document.subscriptionAjaxRequest = null;
}
else
@@ -1050,7 +1050,7 @@ function subscribeToFolder(refreshCallback, refreshCallbackData) {
rfCbData);
}
else
refreshCallbackData["window"].alert(label ("You cannot subscribe to a folder that you own!"));
refreshCallbackData["window"].alert(getLabel("You cannot subscribe to a folder that you own!"));
}
function folderUnsubscriptionCallback(http) {
@@ -1061,7 +1061,7 @@ function folderUnsubscriptionCallback(http) {
http.callbackData["method"](http.callbackData["data"]);
}
else
window.alert(label ("Unable to unsubscribe from that folder!"));
window.alert(getLabel("Unable to unsubscribe from that folder!"));
}
}
@@ -1081,7 +1081,7 @@ function unsubscribeFromFolder(folderUrl, owner, refreshCallback,
triggerAjaxRequest(url, folderUnsubscriptionCallback, rfCbData);
}
else
window.alert(label ("You cannot unsubscribe from a folder that you own!"));
window.alert(getLabel("You cannot unsubscribe from a folder that you own!"));
}
}
@@ -1232,21 +1232,21 @@ function showAlarmCallback(http) {
&& http.status == 200) {
if (http.responseText.length) {
var data = http.responseText.evalJSON(true);
var msg = label ("Reminder:") + " " + data["summary"] + "\n";
var msg = getLabel("Reminder:") + " " + data["summary"] + "\n";
if (data["startDate"]) {
msg += label ("Start:") + " " + data["startDate"];
msg += getLabel("Start:") + " " + data["startDate"];
if (parseInt(data["isAllDay"]) == 0)
msg += " - " + data["startTime"];
msg += "\n";
}
if (data["dueDate"]) {
msg += label ("Due Date:") + " " + data["dueDate"];
msg += getLabel("Due Date:") + " " + data["dueDate"];
if (data["dueTime"])
msg += " - " + data["dueTime"];
msg += "\n";
}
if (data["location"].length)
msg += "\n" + label ("Location:") + " " + data["location"];
msg += "\n" + getLabel("Location:") + " " + data["location"];
if (data["description"].length)
msg += "\n\n" + data["description"];
@@ -1591,7 +1591,7 @@ function createFolderCallback(http) {
data.okCB(data.name, "/" + http.responseText, UserLogin);
}
else if (http.status == 409) {
alert (label ("A folder by that name already exists."));
alert (getLabel("A folder by that name already exists."));
}
else {
if (data.notOkCB)
@@ -1609,7 +1609,7 @@ function delegateInvitation(componentUrl, callbackFunction, callbackData) {
if (input.uid != null)
delegatedTo = input.uid;
else if (input.value.blank())
alert(label ("noEmailForDelegation"));
alert(getLabel("noEmailForDelegation"));
else
delegatedTo = input.value;
@@ -1694,7 +1694,7 @@ AIM = {
}
function label (title) {
function getLabel(title) {
var rc = title;
if (!logWindow) {
logWindow = window;