arreglado

This commit is contained in:
2025-06-30 12:19:53 +02:00
parent 8007e33760
commit bbd2a389af

View File

@ -273,6 +273,8 @@ class Comparador {
this.comparadorExterioresRunning = false; this.comparadorExterioresRunning = false;
this.comparadorGuardasRunning = false; this.comparadorGuardasRunning = false;
this.comparadorFajaRunning = false; this.comparadorFajaRunning = false;
this._bloqueoCambioSobrecubierta = false;
} }
init() { init() {
@ -359,6 +361,8 @@ class Comparador {
self.gramajeSobrecubierta.empty() self.gramajeSobrecubierta.empty()
}); });
this.sobrecubierta.on('change', () => { this.sobrecubierta.on('change', () => {
if(this._bloqueoCambioSobrecubierta) return;
this._bloqueoCambioSobrecubierta = true;
if (this.sobrecubierta.select2('data')[0].id == 1) { if (this.sobrecubierta.select2('data')[0].id == 1) {
/*if ($('#solapas_sobrecubierta').prop('checked') == false) { /*if ($('#solapas_sobrecubierta').prop('checked') == false) {
this.sobrecubierta.val('0').trigger('change'); this.sobrecubierta.val('0').trigger('change');
@ -380,6 +384,7 @@ class Comparador {
$('#compGramajeSobrecubierta').prop('disabled', true); $('#compGramajeSobrecubierta').prop('disabled', true);
} }
this._bloqueoCambioSobrecubierta = false;
}); });
} }