Refactoring, change menu, add many features

This commit is contained in:
Ludovic CANDELLIER
2021-10-30 02:22:51 +02:00
parent fae7b7897f
commit e356b3fcda
158 changed files with 1114 additions and 412 deletions

View File

@@ -20,8 +20,12 @@
e.preventDefault();
// var id = table.row(this).id();
var id = $(this).data('id');
url = '{{ $route }}' + '/show/' + id;
openURL(url);
@if (isset($show_callback))
{{ $show_callback }}
@else
url = '{{ $route }}' + '/show/' + id;
openURL(url);
@endif
});
$('#{{ $model }}-table .btn-del').off('click').click(function (e) {
@@ -29,7 +33,7 @@
// var id = table.row(this).id();
var id = $(this).data('id');
bootbox.confirm("{{ __('admin.confirmdelete') }}", function (result) {
bootbox.confirm("{{ __('fg.confirmdelete') }}", function (result) {
if (result === false) return;
$.ajax({
@@ -43,7 +47,7 @@
@else
table.draw();
@endif
growl("{{ __('admin.deletesuccess') }}", 'success');
growl("{{ __('fg.deletesuccess') }}", 'success');
}
});
});