Monotone-Parent: 92528ef4ae9b54bc30415a773c3bf6013e284be0

Monotone-Revision: 048d106563715d2fe3f7e783e8caec9f3ad005e2

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-04-27T22:06:58
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-04-27 22:06:58 +00:00
parent 58865b869b
commit e1db62a8bb
4 changed files with 34 additions and 16 deletions
+22 -13
View File
@@ -836,7 +836,8 @@ function subscribeToFolder(refreshCallback, refreshCallbackData) {
rfCbData);
}
else
window.alert(labels["You cannot subscribe to a folder that you own!"].decodeEntities());
window.alert(labels["You cannot subscribe to a folder that you own!"]
.decodeEntities());
}
function folderUnsubscriptionCallback(http) {
@@ -853,7 +854,8 @@ function folderUnsubscriptionCallback(http) {
function unsubscribeFromFolder(folder, refreshCallback, refreshCallbackData) {
if (document.body.hasClassName("popup")) {
window.opener.unsubscribeFromFolder(folder, refreshCallback, refreshCallbackData);
window.opener.unsubscribeFromFolder(folder, refreshCallback,
refreshCallbackData);
}
else {
var folderData = folder.split(":");
@@ -867,9 +869,9 @@ function unsubscribeFromFolder(folder, refreshCallback, refreshCallbackData) {
document.unsubscriptionAjaxRequest.abort();
}
var rfCbData = { method: refreshCallback, data: refreshCallbackData };
document.unsubscriptionAjaxRequest = triggerAjaxRequest(url,
folderUnsubscriptionCallback,
rfCbData);
document.unsubscriptionAjaxRequest
= triggerAjaxRequest(url, folderUnsubscriptionCallback,
rfCbData);
}
else
window.alert(labels["You cannot unsubscribe from a folder that you own!"].decodeEntities());
@@ -946,6 +948,14 @@ function openAclWindow(url) {
return w;
}
function getUsersRightsWindowHeight() {
return usersRightsWindowHeight;
}
function getUsersRightsWindowWidth() {
return usersRightsWindowWidth;
}
function onTabClick(event) {
var node = event.target;
@@ -1023,15 +1033,14 @@ function indexColor(number) {
var currentValue = number;
var index = 0;
while (currentValue)
{
if (currentValue & 1)
while (currentValue) {
if (currentValue & 1)
colorTable[index]++;
if (index == 3)
index = 0;
currentValue >>= 1;
index++;
}
if (index == 3)
index = 0;
currentValue >>= 1;
index++;
}
color = ("#"
+ d2h((256 / colorTable[2]) - 1)