This question is locked. New answers and comments are not allowed.
Hello,
I am trying to alert my users before NodeDropped using the NodeDrop client event. It's working great, but I only need to alert when the drop is actually possible (I.E. when the "+" sign indicator appears on the dragged node).
Is there a way to determine if the drop target is valid? It seems as though you guys have already figured it out for the dragged node indicators?
Currently, I am using the following. It works, but I'm wondering if there's a more elegant solution:
Thank you!
-Derek
I am trying to alert my users before NodeDropped using the NodeDrop client event. It's working great, but I only need to alert when the drop is actually possible (I.E. when the "+" sign indicator appears on the dragged node).
Is there a way to determine if the drop target is valid? It seems as though you guys have already figured it out for the dragged node indicators?
Currently, I am using the following. It works, but I'm wondering if there's a more elegant solution:
function OnNodeDrop(e) { if ($('.t-drag-status').hasClass('t-add')) { //... }}Thank you!
-Derek