problema con los custom radiobutons

This commit is contained in:
2024-10-06 19:52:24 +02:00
parent cece606bb1
commit 78b255fa0d
10 changed files with 727 additions and 139 deletions

View File

@ -1,5 +1,6 @@
import DatosGenerales from './datosGenerales.js';
import DisenioInterior from './disenioInterior.js';
import DisenioCubierta from './disenioCubierta.js';
import Ajax from '../../components/ajax.js';
class PresupuestoCliente {
@ -19,6 +20,7 @@ class PresupuestoCliente {
this.datosGenerales = new DatosGenerales($("#datos-generales"), this.clientePresupuestoWizard, this.validationStepper);
this.disenioInterior = new DisenioInterior($("#interior-libro"), this.clientePresupuestoWizard, this.validationStepper);
this.disenioCubierta = new DisenioCubierta($("#cubierta-libro"), this.clientePresupuestoWizard, this.validationStepper);
}
@ -36,6 +38,7 @@ class PresupuestoCliente {
this.datosGenerales.init();
this.disenioInterior.init();
this.disenioCubierta.init();
this.RELLENAR_PRESUPUESTO();
@ -43,7 +46,10 @@ class PresupuestoCliente {
RELLENAR_PRESUPUESTO() {
$("#titulo").val("Titulo del libro");
$("#titulo").trigger('change');
const clienteId = $("#clienteId");
const newOption = new Option("Cliente 1", "1", true, true);
clienteId.append(newOption).trigger('change');
@ -113,26 +119,8 @@ class PresupuestoCliente {
}
#prevtStep() {
switch (this.validationStepper._currentIndex) {
case 4:
validationStepper.previous();
break;
case 3:
validationStepper.previous();
break;
case 2:
validationStepper.previous();
break;
case 1:
this.validationStepper.previous();
break;
default:
break;
}
if(this.validationStepper._currentIndex >= 1 && this.validationStepper._currentIndex <= 4)
this.validationStepper.previous();
}
}