Refactoring, change menu, add many features
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user