Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

fixed in trunk

2

I've created two trees, all working OK, and can drag between the two of them. However, when I drag the last item from a tree to the other tree, an error is thrown because the tree is left empty:

node is null
- thrown from the $getIndex function:
}while(node=node.getNextVisible());

It could take me a while to find a fix, but may be quicker to post here, as I'm sure someone's encountered this problem already. Two potential fixes I thought of are:

1) when the tree is emptied, don't try to do any tree-updating (though it's not immediately clearer what calls are made where)
2) better, would be to add a "dummy" item to the tree, indicating that it's now empty (and also making it clear where to drag items back to, from the other list).

If anyone has any solutions for this, or advice, please post a reply.

many thanks in advance,
Claude