update
parent
66f8b98f66
commit
cbd6d5d444
|
|
@ -125,7 +125,7 @@
|
|||
$('#metadataContent').hide();
|
||||
$('#isLoadMetadata').show();
|
||||
$.ajax({
|
||||
url: '{{ route('modules.form.metadata.index', ['form_id' => $instansi === 'all' ? 0 : $activityForm->id ?? 0]) }}',
|
||||
url: '{{ route('modules.form.metadata.index', ['form_id' => @$instansi === 'all' ? 0 : @$activityForm->id ?? 0]) }}',
|
||||
type: 'GET',
|
||||
success: function(data) {
|
||||
$('#metadataContent').html(data);
|
||||
|
|
@ -149,7 +149,7 @@
|
|||
$('#formContent').hide();
|
||||
$('#isLoadForm').show();
|
||||
$.ajax({
|
||||
url: '{{ route('modules.form.create', ['sector' => $form->sector, 'code' => $form->code]) }}',
|
||||
url: '{{ route('modules.form.create', ['sector' => @$form->sector, 'code' => @$form->code]) }}',
|
||||
type: 'GET',
|
||||
success: function(data) {
|
||||
$('#formContent').html(data);
|
||||
|
|
@ -180,7 +180,7 @@
|
|||
scrollX: true,
|
||||
searchDelay: 1000,
|
||||
ajax: {
|
||||
url: '{{ route('modules.form.aktivitasUser', ['form_id' => $instansi === 'all' ? 0 : $activityForm->id ?? 0]) }}',
|
||||
url: '{{ route('modules.form.aktivitasUser', ['form_id' => @$instansi === 'all' ? 0 : @$activityForm->id ?? 0]) }}',
|
||||
type: 'GET',
|
||||
dataSrc: 'data'
|
||||
},
|
||||
|
|
@ -220,7 +220,7 @@
|
|||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$.ajax({
|
||||
url: '{{ route('modules.form.metadata.destroy', ':id') }}'.replace(':id', metadataId),
|
||||
url: '{{ route("modules.form.metadata.destroy", "":id") }}'.replace(':id', metadataId),
|
||||
type: 'POST',
|
||||
data: {
|
||||
_token: '{{ csrf_token() }}',
|
||||
|
|
|
|||
Loading…
Reference in New Issue