From bb63dfd1e580a5e8102f87ae26c62d90f91af3ed Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 26 Mar 2009 09:40:41 +0000 Subject: [PATCH] Add ability to have accesskeys in advanced folder tree git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13448 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default_advanced/js/dtree.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/default_advanced/js/dtree.js b/templates/default_advanced/js/dtree.js index 67fec6f4..415fafeb 100644 --- a/templates/default_advanced/js/dtree.js +++ b/templates/default_advanced/js/dtree.js @@ -10,7 +10,7 @@ |--------------------------------------------------*/ // Node object -function Node(id, pid, name, url, title, target, icon, iconOpen, open) { +function Node(id, pid, name, url, title, target, icon, iconOpen, accesskey, open) { this.id = id; this.pid = pid; this.name = name; @@ -19,6 +19,7 @@ function Node(id, pid, name, url, title, target, icon, iconOpen, open) { this.target = target; this.icon = icon; this.iconOpen = iconOpen; + this.accesskey = accesskey; this._io = open || false; this._is = false; this._ls = false; @@ -66,8 +67,8 @@ function dTree(objName, imagePath) { }; // Adds a new node to the node array -dTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) { - this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open); +dTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, accesskey, open) { + this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, accesskey, open); }; // Open/close all nodes @@ -133,6 +134,7 @@ dTree.prototype.node = function(node, nodeId) { str += '