Monotone-Parent: 57e41fda15f1e4891e7b367169b5662b73274f50

Monotone-Revision: 6364fd26aed4532b46cd1c779ef5e9f5f6c0971c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-03-02T19:53:53
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-03-02 19:53:53 +00:00
parent a5171ea34f
commit e2f1faa697
2 changed files with 27 additions and 15 deletions

View File

@ -1,3 +1,8 @@
2010-03-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/generic.js (_): new gettextable equivalent
of "getLabel".
2010-03-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoDomainDefaults.m (-imapFolderSeparator): new

View File

@ -294,7 +294,7 @@ function triggerAjaxRequest(url, callback, userdata, content, headers) {
http.url = url;
http.callback = callback;
http.callbackData = userdata;
http.onreadystatechange = function() { onAjaxRequestStateChange(http) };
http.onreadystatechange = function() { onAjaxRequestStateChange(http);};
// = function() {
// // log ("state changed (" + http.readyState + "): " + url);
// };
@ -511,6 +511,8 @@ function onRowClick(event) {
if (rowIndex != null)
lastClickedRow = rowIndex;
event.stop();
return true;
}
@ -1625,22 +1627,27 @@ function getMenus() {
function onHeaderClick(event) {
}
function getLabel(title) {
var rc = title;
if (!logWindow) {
logWindow = window;
while (logWindow.opener)
logWindow = logWindow.opener;
function _(key) {
var value = key;
if (labels[key]) {
value = labels[key];
}
else {
var topWindow = null;
if (!topWindow) {
topWindow = window;
while (topWindow.opener)
topWindow = topWindow.opener;
}
if (topWindow && topWindow.clabels[key])
value = topWindow.clabels[key];
}
if (labels[title]) {
rc = labels[title];
}
else if (logWindow.clabels[title]) {
rc = logWindow.clabels[title];
}
return rc;
return value;
}
function getLabel(key) {
return _(key);
}
/**