X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=www%2Fjquery.sortable.js;fp=www%2Fjquery.sortable.js;h=3e59fe654b86cd0c85c23f2369247e5f1e17c8ce;hb=f181270af10ecded4b40d9ad3f838216835eb5f4;hp=0000000000000000000000000000000000000000;hpb=e2ec797398326b88782988d0b9719e21c278a584;p=readifood.git diff --git a/www/jquery.sortable.js b/www/jquery.sortable.js new file mode 100644 index 0000000..3e59fe6 --- /dev/null +++ b/www/jquery.sortable.js @@ -0,0 +1,11 @@ +$(function() { + $(".sortable").sortable({ + axis: "y", + containment: "parent", + placeholder: "sortplaceholder", + forcePlaceholderSize: true, + start: function( event, ui ) { ui.item.addClass('sortdragging'); }, + stop: function( event, ui ) { ui.item.removeClass('sortdragging'); }, + }); + $(".sortable").disableSelection(); +});