reparados bugs

This commit is contained in:
jaimejimenezortega
2024-05-22 16:30:05 +02:00
parent e4f6295597
commit 667a2ab679
2 changed files with 2746 additions and 205 deletions

View File

@ -13,8 +13,7 @@
// -------------------------------------------------------------------- // --------------------------------------------------------------------
const clientePresupuestoWizard = document.querySelector('#wizard-presupuesto-cliente'); const clientePresupuestoWizard = document.querySelector('#wizard-presupuesto-cliente');
if (typeof clientePresupuestoWizard !== undefined && clientePresupuestoWizard !== null && if (typeof clientePresupuestoWizard !== undefined && clientePresupuestoWizard !== null ) {
clientePresupuestoWizard.querySelector('#presupuesto-cliente-form').querySelector('#tipo-libro') !== null ) {
// Wizard form // Wizard form
const clientePresupuestoWizardForm = clientePresupuestoWizard.querySelector('#presupuesto-cliente-form'); const clientePresupuestoWizardForm = clientePresupuestoWizard.querySelector('#presupuesto-cliente-form');
// Wizard steps // Wizard steps
@ -26,10 +25,16 @@
const clientePresupuestoWizardNext = [].slice.call(clientePresupuestoWizardForm.querySelectorAll('.btn-next')); const clientePresupuestoWizardNext = [].slice.call(clientePresupuestoWizardForm.querySelectorAll('.btn-next'));
const clientePresupuestoWizardPrev = [].slice.call(clientePresupuestoWizardForm.querySelectorAll('.btn-prev')); const clientePresupuestoWizardPrev = [].slice.call(clientePresupuestoWizardForm.querySelectorAll('.btn-prev'));
let FormValidation2;
let FormValidation3;
let FormValidation4;
let FormValidation5;
let validationStepper = new Stepper(clientePresupuestoWizard, { let validationStepper = new Stepper(clientePresupuestoWizard, {
linear: true linear: true
}); });
if(clientePresupuestoWizardFormStep2 != null) {
// select2 (clienteId) // select2 (clienteId)
const clienteId = $('#clienteId'); const clienteId = $('#clienteId');
@ -39,7 +44,7 @@
}); });
// Deal Details // Deal Details
const FormValidation2 = FormValidation.formValidation(clientePresupuestoWizardFormStep2, { FormValidation2 = FormValidation.formValidation(clientePresupuestoWizardFormStep2, {
fields: { fields: {
}, },
plugins: { plugins: {
@ -60,7 +65,7 @@
// Deal Usage // Deal Usage
const FormValidation3 = FormValidation.formValidation(clientePresupuestoWizardFormStep3, { FormValidation3 = FormValidation.formValidation(clientePresupuestoWizardFormStep3, {
fields: { fields: {
titulo: { titulo: {
validators: { validators: {
@ -223,7 +228,7 @@
}); });
// Direcciones // Direcciones
const FormValidation4 = FormValidation.formValidation(clientePresupuestoWizardFormStep4, { FormValidation4 = FormValidation.formValidation(clientePresupuestoWizardFormStep4, {
fields: { fields: {
}, },
@ -252,9 +257,9 @@
$('#errorDirecciones').show(); $('#errorDirecciones').show();
} }
}); });
}
// Deal Usage // Deal Usage
const FormValidation5 = FormValidation.formValidation(clientePresupuestoWizardFormStep5, { FormValidation5 = FormValidation.formValidation(clientePresupuestoWizardFormStep5, {
fields: { fields: {
// * Validate the fields here based on your requirements // * Validate the fields here based on your requirements
}, },

2536
xdebug.log

File diff suppressed because it is too large Load Diff