Monotone-Parent: 682fa13875615480f8ed7c009317a6fd3050050b

Monotone-Revision: 1cad98827a66e18891a4b93bbab5ccce88c61795

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-06-12T14:58:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-06-12 14:58:15 +00:00
parent bae181672b
commit 59361b2b7f
4 changed files with 26 additions and 26 deletions

View File

@@ -555,13 +555,14 @@ function lookupDeniedFolders() {
for (var i = 0; i < list.length; i++) {
var folderID = list[i].getAttribute("id");
var url = URLForFolderID(folderID) + "/canAccessContent";
triggerAjaxRequest(url, deniedFoldersLookupCallback, folderID);
}
}
function deniedFoldersLookupCallback(http) {
if (http.readyState == 4) {
var denied = (http.status != 204)
if (http.readyState == 4) {
var denied = ! isHttpStatus204(http.status);
var entry = $(http.callbackData);
if (denied)
entry.addClassName("denied");
@@ -588,8 +589,7 @@ function configureContactFolders() {
setEventsOnContactFolder(lis[i]);
lookupDeniedFolders();
contactFolders.setStyle({ visibility: 'visible' });
var personalFolder = $("/personal");
personalFolder.select();
}
@@ -642,18 +642,15 @@ function configureSelectionButtons() {
}
}
var initContacts = {
handleEvent: function (event) {
if (!document.body.hasClassName("popup")) {
configureAbToolbar();
configureSearchField();
}
else
configureSelectionButtons();
configureContactFolders();
function initContacts(event) {
if (!document.body.hasClassName("popup")) {
configureAbToolbar();
configureSearchField();
}
else
configureSelectionButtons();
configureContactFolders();
// initDnd();
}
}
//window.addEventListener("load", initContacts, false);
Event.observe(window, "load", initContacts, false);
addEvent(window, 'load', initContacts);