mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 09:48:51 +00:00
Monotone-Parent: 3adc52f338a2b94d6fa69f9682c0e6ae72c25551
Monotone-Revision: 5e6204a8320fdbd13fd6421b1b0a70dfa5914137 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-08T23:49:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -7,18 +7,21 @@ var requestField;
|
||||
var awaitingFreeBusyRequests = new Array();
|
||||
var freeBusySelectorId;
|
||||
|
||||
function onContactKeyUp(node, event)
|
||||
{
|
||||
function onContactKeyUp(node, event) {
|
||||
if (!running) {
|
||||
if (event.keyCode == 8
|
||||
|| event.keyCode == 32
|
||||
|| event.keyCode > 47) {
|
||||
log ("keycode: " + event.keyCode);
|
||||
running = true;
|
||||
requestField = node;
|
||||
setTimeout("triggerRequest()", delay);
|
||||
} else if (node.confirmedValue && event.keyCode == 13) {
|
||||
node.value = node.confirmedValue;
|
||||
node.setSelectionRange(node.value.length, node.value.length);
|
||||
} else if (node.confirmedValue) {
|
||||
log ("keycode: " + event.keyCode);
|
||||
if (event.keyCode == 13) {
|
||||
node.value = node.confirmedValue;
|
||||
node.setSelectionRange(node.value.length, node.value.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
// Node object
|
||||
function Node(id, pid, name, url, onclick, dataname, datatype, title, target,
|
||||
icon, iconOpen, open) {
|
||||
this.isParent = false;
|
||||
this.id = id;
|
||||
this.pid = pid;
|
||||
this.name = name;
|
||||
@@ -104,6 +105,7 @@ dTree.prototype.toString = function() {
|
||||
dTree.prototype.addNode = function(pNode) {
|
||||
var str = '';
|
||||
var n=0;
|
||||
pNode.isParent = true;
|
||||
if (this.config.inOrder) n = pNode._ai;
|
||||
for (n; n<this.aNodes.length; n++) {
|
||||
if (this.aNodes[n].pid == pNode.id) {
|
||||
@@ -157,7 +159,10 @@ dTree.prototype.node = function(node, nodeId) {
|
||||
}
|
||||
str += '<img id="i' + this.obj + nodeId + '" src="' + ((node._io) ? node.iconOpen : node.icon) + '" alt="" />';
|
||||
}
|
||||
str += '<span class="nodeName">' + node.name + '</span>';
|
||||
str += '<span class="nodeName';
|
||||
if (!node.isParent)
|
||||
str += ' leaf';
|
||||
str += '">' + node.name + '</span>';
|
||||
if (node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += '</a>';
|
||||
str += '</div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user