Commit 56fe2ce9 authored by Nicolas Widart's avatar Nicolas Widart

Preparing the nestable event

parent 0c33c626
...@@ -45,6 +45,12 @@ ...@@ -45,6 +45,12 @@
@section('scripts') @section('scripts')
<script src="{!! Module::asset('menu', 'js/jquery.nestable.js') !!}"></script> <script src="{!! Module::asset('menu', 'js/jquery.nestable.js') !!}"></script>
<script> <script>
$('.dd').nestable(); $( document ).ready(function() {
$('.dd').nestable();
$('.dd').on('change', function() {
var data = $('.dd').nestable('serialize');
console.log(data);
});
});
</script> </script>
@stop @stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment