[jQuery] ui sortable - cancel action if list is too long

2009-06-05 Thread Robert Bobrowski
I have few lists with ui sortable/droppable and I want to have let say max 4 elements in one. So: $("ul[id^='sortable']").sortable({ connectWith: '.user-list', dropOnEmpty: true }) $(".accept-drop").droppable({ drop: function(event, ui) { //some code

[jQuery] ui sortable - cancel action if list is too long

2009-06-05 Thread Robert Bobrowski
I have few lists with ui sortable/droppable and I want to have let say max 4 elements in one. So: $("ul[id^='sortable']").sortable({ connectWith: '.user-list', dropOnEmpty: true }) $(".accept-drop").droppable({ drop: function(event, ui) { //some code