Topic: Drag'n'drop before element that has Drop denied

Hi moro,

here's one more, it's all explained in this screenshot:

http://mp3.ge/dndbug.gif

Let me know if you need more info.

Thanks.

Thumbs up Thumbs down

Re: Drag'n'drop before element that has Drop denied

where is dropDenied ? before, after, inside, any ?

Re: Drag'n'drop before element that has Drop denied

problem solved!

I was using the method that you provided in your example script:

if(this.target && this.target.type=='book' && this.current.type=='book' && this.where=='inside')
{
    this.where='notAllowed';
    $('destination').innerHTML=this.target ? this.target.name : '';
}

I replaced the "if" with my own:

if ($defined(this.target.data) && $defined(this.target.data.nodrop)) <- I am using custom property "nodrop" of node's .data property.
{
...
}

I forgot the "&& this.where=='inside'" part, so it was correctly denying drop above that node!

Mea culpa.

However, now that you asked me about "where is dropDenied".. I looked in your example files and found this:

     DDnotAllowed: ['inside','after']

However, MifTree scrips don't even look for that property (i.e. it's simply ignored). Do you plan to support it?

Thanks

Thumbs up Thumbs down

Re: Drag'n'drop before element that has Drop denied

already fixed in trunk rev12

trunk/tree