Guest User

Untitled

a guest
Jun 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $(".connectedSortable").sortable({
  2. connectWith: ".connectedSortable",
  3. opacity: 0.7
  4. });
  5.  
  6. $("ul.receiver").live("sortreceive sortremove", function(event, ui) {
  7. var id = $(this).attr("id") + "-empty";
  8. var listData = $(this).sortable("serialize");
  9.  
  10. if ( listData === "" ) {
  11. listData = {}; listData[id] = "true";
  12. }
  13.  
  14. $.ajax({
  15. type: "put",
  16. data: listData,
  17. url: $(this).attr("data-url")
  18. })
  19. });
Add Comment
Please, Sign In to add comment