Skip to content

Instantly share code, notes, and snippets.

@shadowhand
Created June 3, 2013 22:53
Show Gist options
  • Save shadowhand/5702171 to your computer and use it in GitHub Desktop.
Save shadowhand/5702171 to your computer and use it in GitHub Desktop.
Immediate refresh of all jQuery UI Droppables. This is very necessary when you create Droppables when a Draggable is started.
// refresh droppables to work with a draggable that is already started
if ($.ui.ddmanager && $.ui.ddmanager.current) {
$.ui.ddmanager.prepareOffsets($.ui.ddmanager.current);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment