Tom Gullen
Tom Gullen

Reputation: 61775

jQuery UI drag and drop stop not firing as expected

$('#img' + imgID).draggable({ helper: 'clone', opacity: 0.35, stop: dragImageEnd() });

        // Called when a drag image has been dropped
        function dragImageEnd(){
            alert(currentlyOverFolderID);
        }

The drag event is working perfectly as expected, except when the draggable property is being added initially to each element it fires the dragImageEnd() event, and when I start dragging and dropping after that the event never fires.

I'm probably using it incorrectly, any tips?

Upvotes: 0

Views: 1660

Answers (1)

Luke
Luke

Reputation: 8407

From

{ stop: dragImageEnd() }

to

{ stop: dragImageEnd }

Upvotes: 4

Related Questions