JS changes to load drag and drop
This commit is contained in:
1 parent
1c35e38097
commit
541aa5831e
2 files changed
+8
-1
No files matched your search
@@ -34,6 +34,10 @@ $('.part_kind').live('click', function() {
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
bindTreeDragHandle();
|
||||
});
|
||||
|
||||
var bindTreeDragHandle = function(){
|
||||
$('ol.sortable').nestedSortable({
|
||||
disableNesting: 'no-nest',
|
||||
forcePlaceholderSize: true,
|
||||
@@ -52,4 +56,4 @@ $(document).ready(function(){
|
||||
$.post("<%= Rails.application.routes.url_helpers.admin_update_position_path %>", { id: ui.item.attr('id'), parent_id: ui.item.parent().closest('li').attr('id'), position: ui.item.index() } );
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user