añadidos todos los servicios a falta del solapas grandes (incluido plegado de guardas)

This commit is contained in:
2025-01-20 20:15:27 +01:00
parent e7163efc5e
commit 036998e71a
12 changed files with 423 additions and 206 deletions

View File

@ -117,9 +117,7 @@ class DatosLibro {
changePrototipo() {
if (this.prototipo.prop('checked')) {
$(document).trigger('add-servicio-lineas', 'prototipo');
this.ferro.prop('checked', true).trigger('change');
}
else {
$(document).trigger('remove-servicio-lineas', 'prototipo');
@ -127,18 +125,18 @@ class DatosLibro {
}
checkRetractilado(element) {
checkRetractilado(event) {
switch (element.id) {
switch (event.currentTarget.id) {
case 'retractilado':
if ($('#' + element.id).prop('checked')) {
if ($('#' + event.currentTarget.id).prop('checked')) {
$('#retractilado5').prop('checked', false);
$(document).trigger('remove-servicio-lineas', 'retractilado5');
$(document).trigger('add-servicio-lineas', 'retractilado');
}
break;
case 'retractilado5':
if ($('#' + element.id).prop('checked')) {
if ($('#' + event.currentTarget.id).prop('checked')) {
$('#retractilado').prop('checked', false);
$(document).trigger('remove-servicio-lineas', 'retractilado');
$(document).trigger('add-servicio-lineas', 'retractilado5');