Open lyricnz opened 4 days ago
The code in js/app.js like 633 is the first line of below.
$('#sortable').sortable({
stop: function stop(event, ui) {
var idsInOrder = $('#sortable').sortable('toArray', {
attribute: 'data-id'
});
$.post(base + 'order', {
order: idsInOrder
});
}
});
This is 2.6.1 btw
It looks like "sortable" is part of jquery-ui not jquery? https://jqueryui.com/sortable/
Certainly adding the middle line below to ./resources/views/layouts/app.blade.php seems to have fixed the specific issue
<script src="{{ asset('js/jquery.min.js') }}"></script>
<script src="{{ asset('js/jquery-ui.min.js') }}"></script>
<script src="{{ asset(mix('js/app.js')) }}"></script>