I have the following piece of code.
See the two comments for the problem.
$(settings.columns).sortable({
...
...
start: function(e, ui) {
...
stickies.block = true; // This line is OK
},
stop: function(e, ui) {
...
stickies.block = false; // Without this line it works, with it I can't drop the widget
}
});
By can’t drop, I mean I can pick it up fine but letting go of the mouse button doesn’t work and I am still holding the widget.
Any ideas?
Sorry, I worked it out. I was accidentally returning false as CoffeeScript makes the last line of a statement return so I had this.
Of course, the returning false cancelled the event and stopped it from dropping the note.