Topic: Drag'n'drop before element that has Drop denied
Hi moro,
here's one more, it's all explained in this screenshot:
Let me know if you need more info.
Thanks.
You are not logged in. Please login or register.
Hi moro,
here's one more, it's all explained in this screenshot:
Let me know if you need more info.
Thanks.
where is dropDenied ? before, after, inside, any ?
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
already fixed in trunk rev12
Posts [ 4 ]
Powered by PunBB