<?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 - Add an selectOnDrag option to Mif.Tree.Drag]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/210/"/>
	<updated>2010-04-22T07:40:18Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/210/</id>
		<entry>
			<title type="html"><![CDATA[Re: Add an selectOnDrag option to Mif.Tree.Drag]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/784/#p784"/>
			<content type="html"><![CDATA[if you comment
[code]if(target && target.tree) this.tree.select(target);[/code]
you don't see node selection, blue dotted line will work. You can add some style when node in drop inside position:
[code]
onDrop: function(){
    if(this.inside){
        this.inside.getDOM('name').style.border = 'none';
        this.inside = null;
    }
},
onDrag: function(){
    if(this.where == 'inside') {
        if(this.inside) this.inside.getDOM('name').style.border = 'none';
        this.inside = this.target;
        this.target.getDOM('name').style.border = 'dashed 1px green';
    }else if(this.inside){
        this.inside.getDOM('name').style.border = 'none';
        this.inside = null;
    }
}
[/code]]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2010-04-22T07:40:18Z</updated>
			<id>http://mifjs.net/forum/post/784/#p784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add an selectOnDrag option to Mif.Tree.Drag]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/781/#p781"/>
			<content type="html"><![CDATA[Please add an option for disabling auto-select on dragging over an node.
If i comment this line out:

if(target && target.tree) this.tree.select(target);

i don´t see an insertion marker (blue small line) any more.
How should i fix this?

thx André]]></content>
			<author>
				<name><![CDATA[AFiedler]]></name>
				<uri>http://mifjs.net/forum/user/133/</uri>
			</author>
			<updated>2010-04-16T16:25:58Z</updated>
			<id>http://mifjs.net/forum/post/781/#p781</id>
		</entry>
</feed>

