From b74da846f2287ba799a7e051e85611f748cc1444 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 11 Jun 2009 12:47:26 +0000 Subject: [PATCH] Monotone-Parent: b0e5ee564933daba4086caf8c388552e1777cf7c Monotone-Revision: 87a9edec020f812d113ea5bde21c2d30b040ab87 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-11T12:47:26 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/dtree.js | 70 +++++++++++++++++----------------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/UI/WebServerResources/dtree.js b/UI/WebServerResources/dtree.js index 57dbed7c1..856069738 100644 --- a/UI/WebServerResources/dtree.js +++ b/UI/WebServerResources/dtree.js @@ -34,46 +34,48 @@ function Node(id, pid, name, isParent, url, dataname, datatype, title, target, // Tree object function dTree(objName) { - this.config = { - target : null, - hideRoot : false, - folderLinks : true, - useSelection : true, - useCookies : false, - useLines : true, - useIcons : true, - useStatusText : false, - closeSameLevel : false, - inOrder : false - } - this.icon = { - root : 'img/base.gif', - folder : 'img/folder.gif', - folderOpen : 'img/folderopen.gif', - node : 'img/page.gif', - empty : 'img/empty.gif', - line : 'img/line.gif', - join : 'img/join.gif', - joinBottom : 'img/joinbottom.gif', - plus : 'img/plus.gif', - plusBottom : 'img/plusbottom.gif', - minus : 'img/minus.gif', - minusBottom : 'img/minusbottom.gif', - nlPlus : 'img/nolines_plus.gif', - nlMinus : 'img/nolines_minus.gif' - }; this.obj = objName; - this.aNodes = []; - this.aIndent = []; - this.root = new Node(-1); - this.selectedNode = null; - this.selectedFound = false; - this.completed = false; return this; }; dTree.prototype = { + obj: null, + config: { + target: null, + hideRoot: false, + folderLinks: true, + useSelection: true, + useCookies: false, + useLines: true, + useIcons: true, + useStatusText: false, + closeSameLevel: false, + inOrder: false + }, + icon: { + root: 'img/base.gif', + folder: 'img/folder.gif', + folderOpen: 'img/folderopen.gif', + node: 'img/page.gif', + empty: 'img/empty.gif', + line: 'img/line.gif', + join: 'img/join.gif', + joinBottom: 'img/joinbottom.gif', + plus: 'img/plus.gif', + plusBottom: 'img/plusbottom.gif', + minus: 'img/minus.gif', + minusBottom: 'img/minusbottom.gif', + nlPlus: 'img/nolines_plus.gif', + nlMinus: 'img/nolines_minus.gif' + }, + aNodes: [], + aIndent: [], + root: new Node(-1), + selectedNode: null, + selectedFound: false, + completed: false, + // Adds a new node to the node array add: function(id, pid, name, isParent, url, datatype, title, target, icon, iconOpen, open, hasUnseen) {