mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-26 16:42:44 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user