mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
problema con los custom radiobutons
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user