mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
traidos cambios del main
This commit is contained in:
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -188,6 +188,7 @@ class DatosLibro {
|
|||||||
}
|
}
|
||||||
|
|
||||||
changeFaja() {
|
changeFaja() {
|
||||||
|
|
||||||
if (this._bloqueoCambioFaja) return;
|
if (this._bloqueoCambioFaja) return;
|
||||||
this._bloqueoCambioFaja = true;
|
this._bloqueoCambioFaja = true;
|
||||||
|
|
||||||
@ -214,6 +215,7 @@ class DatosLibro {
|
|||||||
$(document).trigger('remove-servicio-lineas', 'solapas_grandes_faja');
|
$(document).trigger('remove-servicio-lineas', 'solapas_grandes_faja');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._bloqueoCambioFaja = false;
|
this._bloqueoCambioFaja = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -802,7 +804,7 @@ class DatosLibro {
|
|||||||
|
|
||||||
if (isNaN(valorActual) || valorActual < min) {
|
if (isNaN(valorActual) || valorActual < min) {
|
||||||
this.paginas.val(min);
|
this.paginas.val(min);
|
||||||
} else if (valorActual > max) {
|
} else if (valorActual > max && max !== null) {
|
||||||
this.paginas.val(max);
|
this.paginas.val(max);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user