From bbd2a389af34577c8049cebcb6d7690e44e7824f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Mon, 30 Jun 2025 12:19:53 +0200 Subject: [PATCH] arreglado --- .../js/safekat/pages/presupuestoAdmin/sections/comparador.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/comparador.js b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/comparador.js index 8e95d906..f3a42937 100644 --- a/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/comparador.js +++ b/httpdocs/assets/js/safekat/pages/presupuestoAdmin/sections/comparador.js @@ -273,6 +273,8 @@ class Comparador { this.comparadorExterioresRunning = false; this.comparadorGuardasRunning = false; this.comparadorFajaRunning = false; + + this._bloqueoCambioSobrecubierta = false; } init() { @@ -359,6 +361,8 @@ class Comparador { self.gramajeSobrecubierta.empty() }); this.sobrecubierta.on('change', () => { + if(this._bloqueoCambioSobrecubierta) return; + this._bloqueoCambioSobrecubierta = true; if (this.sobrecubierta.select2('data')[0].id == 1) { /*if ($('#solapas_sobrecubierta').prop('checked') == false) { this.sobrecubierta.val('0').trigger('change'); @@ -380,6 +384,7 @@ class Comparador { $('#compGramajeSobrecubierta').prop('disabled', true); } + this._bloqueoCambioSobrecubierta = false; }); }