I have a series of linked sortables, and a collection of items that
can be dragged between. Based on the class of the sortable, I need to
be able to cancel the drop action and return the item to its original
position. It seems like I should be able to use the "cancel" method on
the sortable to accomplish this from within the beforeStop handler,
like this:

beforeStop: function(evt, ui) {
  $target = ui.placeholder.parent();
  if ($target.hasClass("full")) {
    $target.sortable("cancel");
  }
}

However, this causes an error to be thrown: "this.placeholder is
undefined". I Googled around a bit, and saw this trac ticket:

http://ui.jquery.com/bugs/ticket/3839

It seems like this is the same problem that I'm describing, but the
ticket is marked as being fixed in RC4. (I'm using the latest jQuery
UI 1.6 RC5.)

Any ideas?


Thanks,
Nate

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to