Response title
This is preview!
var action = ""; $(".myList").sortable({ items: "li", connectWith : ".myList", opacity: 0.7, revert: true, update: function(event, ui) { /* first there is the code that lets me know if the update
happening on the source or target
but it is useless to put it in my post */ var self = $(this); self.sortable("disable"); $( "#dialog-confirm" ).dialog({ resizable: false, height:140, modal: true, buttons: { "Move": function() { action = "move"; self.sortable("enable"); $(this).dialog( "close" ); }, "Copy": function() { action = "copy"; self.sortable("enable"); $(this).dialog( "close" ); }, "Cancel": function() { action = "cancel"; self.sortable("cancel"); $(this).dialog( "close" ); } } )}; }, receive: function(event, ui) { alert("receive"); } });
© 2013 jQuery Foundation
Sponsored by and others.