mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-28 14:45:28 +00:00
Monotone-Parent: f463d17bed09b78de002a4dfc873a1f45b6aa7b7
Monotone-Revision: ffa74c2e225e0a673981d5b4a7bfed4d371263a8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-22T21:14:17 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1013,32 +1013,42 @@ function openInbox(node) {
|
||||
}
|
||||
}
|
||||
|
||||
function configureSearchField() {
|
||||
var searchValue = $("searchValue");
|
||||
|
||||
searchValue.addEventListener("mousedown", onSearchMouseDown, false);
|
||||
searchValue.addEventListener("click", popupSearchMenu, false);
|
||||
searchValue.addEventListener("blur", onSearchBlur, false);
|
||||
searchValue.addEventListener("focus", onSearchFocus, false);
|
||||
searchValue.addEventListener("keydown", onSearchKeyDown, false);
|
||||
}
|
||||
|
||||
var initMailer = {
|
||||
handleEvent: function (event) {
|
||||
if (!document.body.hasClassName("popup")) {
|
||||
var inboxFound = false;
|
||||
configureMessageListEvents();
|
||||
initDnd();
|
||||
var tree = $("d");
|
||||
var nodes = document.getElementsByClassName("node", tree);
|
||||
for (i = 0; i < nodes.length; i++) {
|
||||
nodes[i].addEventListener("click", onMailboxTreeItemClick, false);
|
||||
nodes[i].addEventListener("contextmenu", onFolderMenuClick, false);
|
||||
if (!inboxFound
|
||||
&& nodes[i].parentNode.getAttribute("datatype") == "inbox") {
|
||||
openInbox(nodes[i]);
|
||||
inboxFound = true;
|
||||
}
|
||||
handleEvent: function (event) {
|
||||
if (!document.body.hasClassName("popup")) {
|
||||
configureSearchField();
|
||||
var inboxFound = false;
|
||||
configureMessageListEvents();
|
||||
initDnd();
|
||||
var tree = $("d");
|
||||
var nodes = document.getElementsByClassName("node", tree);
|
||||
for (i = 0; i < nodes.length; i++) {
|
||||
nodes[i].addEventListener("click", onMailboxTreeItemClick, false);
|
||||
nodes[i].addEventListener("contextmenu", onFolderMenuClick, false);
|
||||
if (!inboxFound
|
||||
&& nodes[i].parentNode.getAttribute("datatype") == "inbox") {
|
||||
openInbox(nodes[i]);
|
||||
inboxFound = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
, 'onMailboxTreeItemClick(this);'
|
||||
<!-- if (typeof(node.datatype) != "undefined") str += ' oncontextmenu="onFolderMenuClick(event, this);"';
|
||||
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
, 'onMailboxTreeItemClick(this);'
|
||||
<!-- if (typeof(node.datatype) != "undefined") str += ' oncontextmenu="onFolderMenuClick(event, this);"';
|
||||
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
function initializeMenus() {
|
||||
|
||||
Reference in New Issue
Block a user