<?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 - Mistake in Tree demo files]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/topic/27/"/>
	<updated>2008-08-24T09:08:28Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/topic/27/</id>
		<entry>
			<title type="html"><![CDATA[Re: Mistake in Tree demo files]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/129/#p129"/>
			<content type="html"><![CDATA[[quote=temuri]Have you changed globally DDisabled to dragDisabled?[/quote]
yes, it's right name for this property. see [url=http://mifjs.net/trunk/tree/Docs/index.html#Plugins/Mif.Tree.Drag]docs[/url]: dragDisabled - (boolean) disable dragging

p.s. tree.drag will be rewriten soon for support d'n'd between trees .]]></content>
			<author>
				<name><![CDATA[moro]]></name>
				<email><![CDATA[creavenmoro@gmail.com]]></email>
				<uri>http://mifjs.net/forum/user/2/</uri>
			</author>
			<updated>2008-08-24T09:08:28Z</updated>
			<id>http://mifjs.net/forum/post/129/#p129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mistake in Tree demo files]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/post/125/#p125"/>
			<content type="html"><![CDATA[Hi moro,

Here's what I found. In "Tree row highlighting" demo, row that says "drag me! sorry imposible" *is* in fact draggable.

You have to fix the following file:

C:\xampp\htdocs\MifTree.SVN\assets\files\forest.json, from line 9 should be updated as:

		"property": {
			"name": "drag me! sorry imposible",
			"dragDisabled" : true,    // This is missing.
			"hasCheckbox": false
		},

Also, after updating to latest version I did thorough code comparing and here is the part I don't understand.

In Plugins\Mif.Tree.Drag.js, line 71 in mousedown() method:

	mousedown: function(event){
                ...
		if(this.current.dragDisabled){
			this.current=false;
		}
                ...
	},

In earlier versions you had current.DDisabled, but now it says current.dragDisabled.

That was necessary change, since you did it. But could you please tell me if "dragDisabled" refers to a node property in JSON file or is it simply a private variable?

Have you changed globally DDisabled to dragDisabled?

Thanks again for excellent work.

Temuri]]></content>
			<author>
				<name><![CDATA[temuri]]></name>
				<uri>http://mifjs.net/forum/user/4/</uri>
			</author>
			<updated>2008-08-23T17:26:22Z</updated>
			<id>http://mifjs.net/forum/post/125/#p125</id>
		</entry>
</feed>

