$(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 | |
---|---|---|---|---|---|
#1 | 15998 | Paul Allen |
Refactor for plugin design. Moving main code to 'core'. |
||
//guest/perforce_software/hive/main/src/main/resources/public/js/draglist.js | |||||
#1 | 15926 | Matt Attaway | Incremental pull of Hive | ||
//guest/paul_allen/p4am/src/main/resources/public/js/draglist.js | |||||
#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. |