jQuery Masonry conflict with jQuery UI Sortable -
jquery ui sortable not working when using masonry. idea how avoid conflict? appreciated.
i think had similar problem.
i managed fix recalling masonry within code setting sortable elements. (there might better way, i'm not sure?)
$(function() { $("#youritem").sortable({ opacity: 0.9, cursor: 'move', update: function() { var order = $(this).sortable("serialize") + '&action=updaterecordslistings'; $.post("dosomething.php", order, function(theresponse){ //you can see i've re-called masonry once sortable object has been moved $('#youritem').masonry({columnwidth: 200, itemselector: 'youritem' }); }); } }); });
hopefully helps out – if there way i'd know.
Comments
Post a Comment