From: pdontthink Date: Thu, 26 Mar 2009 09:40:41 +0000 (+0000) Subject: Add ability to have accesskeys in advanced folder tree X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=bb63dfd1e580a5e8102f87ae26c62d90f91af3ed 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 --- 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 += '