$(function() { $(".source, .target").sortable({ connectWith : ".connected" }); $('#createRepo').on('click', function() { updateValues(); }); function updateValues() { var items = []; $("ul.target").children().each(function() { var item = $(this).attr('id'); items.push(item); }); var jsonData = JSON.stringify(items); console.log(jsonData); $("#draglist").val(items); } });
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 15030 | Paul Allen | Post the depot 'id' back and update the form on a click event. | ||
#1 | 15029 | Paul Allen |
Add drag and drop list for Group + POST back. TODO: store result and use object. |