Monotone-Parent: b0e5ee564933daba4086caf8c388552e1777cf7c
Monotone-Revision: 87a9edec020f812d113ea5bde21c2d30b040ab87 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-11T12:47:26 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
698b9d676a
commit
b74da846f2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue