Add varieties
This commit is contained in:
@@ -17,37 +17,5 @@
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
{{$dataTable->scripts()}}
|
||||
|
||||
<script>
|
||||
$('#families-table').on( 'draw.dt', function () {
|
||||
$('.btn-edit').click(function() {
|
||||
url = '/Shop/Admin/Families/edit/' + $(this).data('id');
|
||||
window.location = url;
|
||||
});
|
||||
|
||||
|
||||
$('.btn-del').on('click', '.destroy', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
bootbox.confirm("{{ __('boilerplate::shop.admin.families.list.confirmdelete') }}", function (result) {
|
||||
if (result === false) return;
|
||||
|
||||
$.ajax({
|
||||
url: href,
|
||||
method: 'delete',
|
||||
headers: {'X-CSRF-TOKEN': '{{ csrf_token() }}'},
|
||||
success: function(){
|
||||
line.remove();
|
||||
growl("{{ __('boilerplate::shop.admin.families.list.deletesuccess') }}", 'success');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/Families', 'model' => 'families'])
|
||||
@endpush
|
||||
Reference in New Issue
Block a user