mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
arreglado el bucle infinito the change faja
This commit is contained in:
@ -73,6 +73,8 @@ class DatosLibro {
|
|||||||
this.div_faja = this.domItem.find('.faja-div');
|
this.div_faja = this.domItem.find('.faja-div');
|
||||||
|
|
||||||
this.cargando = cargando;
|
this.cargando = cargando;
|
||||||
|
|
||||||
|
this._bloqueoCambioFaja = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
@ -187,6 +189,9 @@ class DatosLibro {
|
|||||||
|
|
||||||
changeFaja() {
|
changeFaja() {
|
||||||
|
|
||||||
|
if (this._bloqueoCambioFaja) return;
|
||||||
|
this._bloqueoCambioFaja = true;
|
||||||
|
|
||||||
if (this.faja.prop('checked')) {
|
if (this.faja.prop('checked')) {
|
||||||
this.div_faja.removeClass('d-none');
|
this.div_faja.removeClass('d-none');
|
||||||
$('#compFaja').val(1).trigger('change');
|
$('#compFaja').val(1).trigger('change');
|
||||||
@ -210,6 +215,8 @@ class DatosLibro {
|
|||||||
$(document).trigger('remove-servicio-lineas', 'solapas_grandes_faja');
|
$(document).trigger('remove-servicio-lineas', 'solapas_grandes_faja');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._bloqueoCambioFaja = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
checkMinMaxInput(event) {
|
checkMinMaxInput(event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user