mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-24 11:24:17 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user