Monotone-Parent: d31a045aea36312935ee1173ab031b085b099751

Monotone-Revision: 6cfba12fb94b5901b149e029c710bdc53dd3d3f1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-05-09T21:27:55
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-05-09 21:27:55 +00:00
parent 9ade9e87a8
commit 634e3429eb
5 changed files with 111 additions and 45 deletions
+25 -23
View File
@@ -411,7 +411,7 @@ function onRowClick(event) {
var parentNode = node.parentNode;
if (parentNode instanceof HTMLTableSectionElement)
parentNode = parentNode.parentNode;
var onSelectionChangeEvent = document.createEvent("Event");
var onSelectionChangeEvent = document.createEvent("UIEvents");
onSelectionChangeEvent.initEvent("selectionchange", true, true);
parentNode.dispatchEvent(onSelectionChangeEvent);
}
@@ -509,7 +509,7 @@ function hideMenu(event, menuNode) {
menuNode.parentMenu = null;
}
var onhideEvent = document.createEvent("Event");
var onhideEvent = document.createEvent("UIEvents");
onhideEvent.initEvent("hideMenu", false, true);
menuNode.dispatchEvent(onhideEvent);
}
@@ -893,18 +893,18 @@ function initTabs() {
for (var i = 0; i < nodes.length; i++) {
if (nodes[i] instanceof HTMLLIElement) {
if (!firstTab) {
firstTab = nodes[i];
firstTab = i;
}
nodes[i].addEventListener("mousedown", onTabMouseDown, true);
nodes[i].addEventListener("click", onTabClick, true);
}
}
firstTab.addClassName("first");
firstTab.addClassName("active");
container.activeTab = firstTab;
nodes[firstTab].addClassName("first");
nodes[firstTab].addClassName("active");
container.activeTab = nodes[firstTab];
var target = $(firstTab.getAttribute("target"));
var target = $(nodes[firstTab].getAttribute("target"));
target.addClassName("active");
}
}
@@ -1065,22 +1065,20 @@ function indexColor(number) {
return color;
}
var onLoadHandler = {
handleEvent: function (event) {
queryParameters = parseQueryParameters('' + window.location);
if (!document.body.hasClassName("popup")) {
initLogConsole();
initializeMenus();
initCriteria();
}
initTabs();
configureDragHandles();
configureSortableTableHeaders();
configureLinkBanner();
var progressImage = $("progressIndicator");
if (progressImage)
progressImage.parentNode.removeChild(progressImage);
var onLoadHandler = function (event) {
queryParameters = parseQueryParameters('' + window.location);
if (!document.body.hasClassName("popup")) {
initLogConsole();
initializeMenus();
initCriteria();
}
initTabs();
configureDragHandles();
configureSortableTableHeaders();
configureLinkBanner();
var progressImage = $("progressIndicator");
if (progressImage)
progressImage.parentNode.removeChild(progressImage);
}
function configureSortableTableHeaders() {
@@ -1114,7 +1112,11 @@ function configureLinkBanner() {
}
}
window.addEventListener("load", onLoadHandler, false);
if (window.addEventListener) {
window.addEventListener('load', onLoadHandler, false);
} else if (document.addEventListener) {
document.addEventListener('load', onLoadHandler, false);
}
/* stubs */
function configureDragHandles() {