hi,
I had this Problem, too, and tried yout solution. It work quite well, but in my case I have two selectables combined as sortables and i only want to have one selected in both lists.
I deleted the "_mouseDrag" as well and added some code in each "selectable", you only have to changethe numbers
- $("#sortable_2").selectable({
- selected: function(){
- var counter=0
- $(".ui-selected", this).each(function(){
- if(counter>0){
- $(this).removeClass("ui-selected");
- return;}
- $("*","#sortable_1").removeClass("ui-selected");
- counter++
- });
- }
- });
is there an easier way? I'm quite sure ;-)
Thanks
tougar