mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
solucionado el problema que se perdia la config cuando se cambiaba el tipo de cubierta
This commit is contained in:
@ -98,9 +98,6 @@ class DisenioCubierta {
|
||||
this.guardasImpresas = this.domItem.find("#guardasImpresas");
|
||||
this.cabezada = this.domItem.find("#cabezada");
|
||||
|
||||
this.cartulinaEstucada = this.domItem.find("#cartulinaEstucada");
|
||||
this.estucadoMate = this.domItem.find("#estucadoMate");
|
||||
|
||||
this.divPapelCubierta = this.domItem.find("#divPapelCubierta");
|
||||
this.divGramajeCubierta = this.domItem.find("#divGramajeCubierta");
|
||||
|
||||
@ -875,12 +872,7 @@ class DisenioCubierta {
|
||||
|
||||
#handleCarasCubierta() {
|
||||
// Si es a dos caras
|
||||
if (this.carasCubierta.val() == 4) {
|
||||
this.cartulinaEstucada.addClass("d-none");
|
||||
}
|
||||
else {
|
||||
this.cartulinaEstucada.removeClass("d-none");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -902,14 +894,9 @@ class DisenioCubierta {
|
||||
element.closest('.image-presupuesto').toggleClass('selected');
|
||||
|
||||
if (this.tapaBlanda.hasClass("selected")) {
|
||||
if (this.carasCubierta.val() == 2) {
|
||||
this.cartulinaEstucada.removeClass("d-none");
|
||||
}
|
||||
this.divGramajeCubierta.addClass("d-none");
|
||||
}
|
||||
else {
|
||||
this.cartulinaEstucada.addClass("d-none");
|
||||
this.estucadoMate.addClass("selected");
|
||||
this.divGramajeCubierta.removeClass("d-none");
|
||||
}
|
||||
|
||||
@ -945,6 +932,8 @@ class DisenioCubierta {
|
||||
this.divSolapas.removeClass("d-none");
|
||||
this.divCarasImpresion.removeClass("d-none");
|
||||
this.divConfigGuardas.addClass("d-none");
|
||||
this.sinSolapas.addClass('selected');
|
||||
this.conSolapas.removeClass('selected');
|
||||
}
|
||||
else if (this.tapaDuraLomoRecto.hasClass("selected") || this.tapaDuraLomoRedondo.hasClass("selected")) {
|
||||
this.solapasCubierta.removeClass("selected");
|
||||
@ -1115,8 +1104,8 @@ class DisenioCubierta {
|
||||
|
||||
if (element[0].id == 'papelEspecialCubierta') {
|
||||
|
||||
if (!this.cargando)
|
||||
this.gramaje = null;
|
||||
/*if (!this.cargando)
|
||||
this.gramaje = null;*/
|
||||
this.divGramajeCubierta.empty();
|
||||
this.divPapelEspecial.removeClass("d-none");
|
||||
$('#papelEspecialCubiertaSel').off("change");
|
||||
@ -1152,11 +1141,8 @@ class DisenioCubierta {
|
||||
(response) => { console.log(response); }
|
||||
).get();
|
||||
}
|
||||
if (!this.cargando)
|
||||
this.gramaje = null;
|
||||
else {
|
||||
if (this.cargando)
|
||||
this.cargando = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user