5

I'm trying to setup a way to sort multiple items at the same time using jQuery UI's Sortable plugin. I have come up with a partial solution, where the checked items go with the drag, but I can't get them all to move positions. Here is what I have: http://jsbin.com/ecela

What do I need to add to ensure the items move to their new location and get removed when dragging starts.

Also, I'm wondering if there is a way to use selectable and sortable together. I'm guessing not because they both require you to click on the items to select and drag/sort them.

Darryl Hein
  • 142,451
  • 95
  • 218
  • 261
  • Have you tried https://github.com/shvetsgroup/jquery.multisortable – pabo Aug 03 '14 at 06:23
  • That's pretty much what I was looking for. It's a little weird that you can drag a main item in the middle of sub items. Put this as an answer so you can get some up votes :) – Darryl Hein Aug 06 '14 at 19:10

1 Answers1

3

There's a jQuery plugin for that: multisortable.

They have a jsfiddle example there too. You select items with shift-click or command-click, then drag them around.

Seems like a good starting off point, at least!

pabo
  • 625
  • 3
  • 14