Skip to forum content
Mif
— mystic javascript interface
You are not logged in. Please login or register.
Active topics Unanswered topics
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.
Topic review (newest first)
Ok, I've it out myself: you have to use beforeDrop in the options.
beforeDrop: function(current,target,where) {
var cid = current.property.id;
var pid = target.property.id;
}
Additionally, I had a typo from the trunk in the function beforeDrop (traget instead of target), you must correct this as well !
Cheers,
Jan
Hi,
how is it possible to get the old parent in MifTree ? I know how to get the new parent (this.current.parentNode in onDrop()), but I don't know how to get the original parent node's name.
Thank you very much in advance,
Jan