Guest User

Untitled

a guest
Jul 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. $("ul#dest").sortable({items: "li:not(.placeholder)",
  2. placeholder: "my_item",
  3. start: function(e, u) {
  4. // Get ID of dragged item.
  5. },
  6. update: function (e, u) {
  7. // Stick the item in model, synchronize with server
  8. },
  9. sort: function(e, u) {
  10. $( this ).removeClass( "ui-state-default" );
  11. }
  12. }).disableSelection();
  13.  
  14. $("ul#src li").draggable({appendTo: "body",
  15. helper: "clone",
  16. connectToSortable: "ul#dest",
  17. start: function (e, u) {
  18. // Get ID of dragged item
  19. }
  20. });
Add Comment
Please, Sign In to add comment