Board Logo

Start tree whit everthing closed!!!!
Rikkez - 1/17/2005 at 03:28 PM

I want my tree to be closed when its loaded. What do I change in the code to get it right?

Need help, thx


tdodds - 2/8/2005 at 01:57 PM

function expand_all () {
for (var i = 1; i < trees[0].a_index.length; i++) {
var o_item = trees[0].a_index;
if (!o_item.b_opened) o_item.open(o_item.b_opened);
}
}

function collapse_all () {
for (var i = 1; i < trees[0].a_index.length; i++) {
var o_item = trees[0].a_index;
if (o_item.b_opened) o_item.open(o_item.b_opened);
}
}


doonee - 3/6/2005 at 12:49 AM

silly question:
where exactly does this code go ?

i pasted it into tree.js, with no avail ...

thanks
d


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/