Monotone-Parent: ec22eec31a634d17211dbfb68bdc49ab1baca4aa

Monotone-Revision: 0fe27b5739f7397e525075ec4060c837ba896b62

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-11-09T22:55:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-11-09 22:55:04 +00:00
parent 178f55b567
commit d6f7301d1c
6 changed files with 186 additions and 214 deletions
+37 -6
View File
@@ -155,6 +155,7 @@ function contactsListCallback(http)
for (var i = 0; i < selected.length; i++)
selectNode($(selected[i]));
}
configureSortableTableHeaders();
}
else
log ("ajax fuckage");
@@ -426,21 +427,19 @@ function newEmailTo(sender) {
return false; /* stop following the link */
}
function onHeaderClick(node)
function onHeaderClick(event)
{
var href = node.getAttribute("href");
if (document.contactsListAjaxRequest) {
document.contactsListAjaxRequest.aborted = true;
document.contactsListAjaxRequest.abort();
}
url = CurrentContactFolderURL() + "/" + href;
if (!href.match(/noframe=/))
url = CurrentContactFolderURL() + "/" + this.link;
if (!this.link.match(/noframe=/))
url += "&noframe=1";
document.contactsListAjaxRequest
= triggerAjaxRequest(url, contactsListCallback);
return false;
event.preventDefault();
}
function registerDraggableMessageNodes()
@@ -638,3 +637,35 @@ function onAddressBookRemove(node) {
return false;
}
function configureDragHandles() {
var handle = $("dragHandle");
if (handle) {
handle.addInterface(SOGoDragHandlesInterface);
handle.leftBlock=$("contactFoldersList");
handle.rightBlock=$("rightPanel");
}
handle = $("rightDragHandle");
if (handle) {
handle.addInterface(SOGoDragHandlesInterface);
handle.upperBlock=$("contactsListContent");
handle.lowerBlock=$("contactView");
}
}
function configureContactFolders() {
var contactFolders = $("contactFolders");
if (contactFolders) {
contactFolders.addEventListener("selectionchange", onFolderSelectionChange, false);
}
}
var initContacts = {
handleEvent: function (event) {
configureContactFolders();
// initDnd();
}
}
window.addEventListener("load", initContacts, false);