<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu - Get old parent in Mif.Tree.Drag]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/215/"/>
	<updated>2010-05-25T10:07:56Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/215/</id>
		<entry>
			<title type="html"><![CDATA[Re: Get old parent in Mif.Tree.Drag]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/793/#p793"/>
			<content type="html"><![CDATA[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]]></content>
			<author>
				<name><![CDATA[jan]]></name>
				<uri>http://mifjs.net/forum/user/115/</uri>
			</author>
			<updated>2010-05-25T10:07:56Z</updated>
			<id>http://mifjs.net/forum/post/793/#p793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Get old parent in Mif.Tree.Drag]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/792/#p792"/>
			<content type="html"><![CDATA[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]]></content>
			<author>
				<name><![CDATA[jan]]></name>
				<uri>http://mifjs.net/forum/user/115/</uri>
			</author>
			<updated>2010-05-24T10:58:40Z</updated>
			<id>http://mifjs.net/forum/post/792/#p792</id>
		</entry>
</feed>

