mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
resolviendo errores
This commit is contained in:
@ -177,6 +177,15 @@
|
|||||||
<?= $this->section('additionalExternalJs') ?>
|
<?= $this->section('additionalExternalJs') ?>
|
||||||
<script type="module"
|
<script type="module"
|
||||||
src="<?= versioned_asset('assets/js/safekat/pages/configuracion/papel_impresion/duplicate.js') ?>"></script>
|
src="<?= versioned_asset('assets/js/safekat/pages/configuracion/papel_impresion/duplicate.js') ?>"></script>
|
||||||
|
|
||||||
|
<?php if (str_contains($formAction, 'edit')): ?>
|
||||||
|
<script type="module"
|
||||||
|
src="<?= versioned_asset('assets/js/safekat/pages/configuracion/papel_impresion/papelesImpresionEdit.js') ?>"></script>
|
||||||
|
<?php else: ?>
|
||||||
|
<script type="module"
|
||||||
|
src="<?= versioned_asset('assets/js/safekat/pages/configuracion/papel_impresion/papelesImpresionAdd.js') ?>"></script>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?= $this->endSection() ?>
|
<?= $this->endSection() ?>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -233,7 +233,7 @@ $(() => {
|
|||||||
d.data[0]['papel_impresion_id'] = id;
|
d.data[0]['papel_impresion_id'] = id;
|
||||||
}
|
}
|
||||||
else if (type === 'edit') {
|
else if (type === 'edit') {
|
||||||
for (v in d.data) {
|
for (let v in d.data) {
|
||||||
d.data[v]['papel_impresion_id'] = id;
|
d.data[v]['papel_impresion_id'] = id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -506,7 +506,7 @@ $(() => {
|
|||||||
d.data[0]['papel_impresion_id'] = id;
|
d.data[0]['papel_impresion_id'] = id;
|
||||||
}
|
}
|
||||||
else if (type === 'edit') {
|
else if (type === 'edit') {
|
||||||
for (v in d.data) {
|
for (let v in d.data) {
|
||||||
d.data[v]['papel_impresion_id'] = id;
|
d.data[v]['papel_impresion_id'] = id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user