Allow reordering the delivery list.
[readifood.git] / www / jquery.sortable.js
diff --git a/www/jquery.sortable.js b/www/jquery.sortable.js
new file mode 100644 (file)
index 0000000..3e59fe6
--- /dev/null
@@ -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();
+});