<?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 - two drag and drop functions]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/186/"/>
	<updated>2010-01-07T19:59:00Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/186/</id>
		<entry>
			<title type="html"><![CDATA[Re: two drag and drop functions]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/700/#p700"/>
			<content type="html"><![CDATA[don't understand where is problem and for why 2 functions, just add if check:
[code]
onComplete: function(){
   if(presed_something){
        //do presed action
   }else{
       //do another action
   }
}
[/code]]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2010-01-07T19:59:00Z</updated>
			<id>http://mifjs.net/forum/post/700/#p700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[two drag and drop functions]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/696/#p696"/>
			<content type="html"><![CDATA[Hello,

I want to make use of two different drag and drop functions in my tree. 

So I want to use two times : 

[code]

new Mif.Tree.Drag(this, {
                
                onComplete:
                              
                                ...

[/code]

But I want to differ them. That means that the user has the choice which one of these two should be called. I thought that it would be a good idea that he is choosing by pressing a certain key on the keyboard.

So I want that when he presses 'STRG+X' while dragging the first drag and drop function is called. And when he is pressing nothing, the second one.

Is it possible to do something like that??]]></content>
			<author>
				<name><![CDATA[jonathan]]></name>
				<uri>http://mifjs.net/forum/user/113/</uri>
			</author>
			<updated>2010-01-01T19:23:22Z</updated>
			<id>http://mifjs.net/forum/post/696/#p696</id>
		</entry>
</feed>

