mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
arreglados buscadores de papeles en presupuesto admin
This commit is contained in:
@ -340,7 +340,9 @@ class Comparador {
|
||||
});
|
||||
this.papelSobrecubierta.init();
|
||||
this.gramajeSobrecubierta.init();
|
||||
this.papelSobrecubierta.onChange(() => self.gramajeSobrecubierta.empty());
|
||||
this.papelSobrecubierta.item.on('select2:select', function() {
|
||||
self.gramajeSobrecubierta.empty()
|
||||
});
|
||||
this.sobrecubierta.on('change', () => {
|
||||
if (this.sobrecubierta.select2('data')[0].id == 1) {
|
||||
if ($('#solapas_sobrecubierta').prop('checked') == false) {
|
||||
@ -386,14 +388,30 @@ class Comparador {
|
||||
if (this.tipo_impresion_id == 1 || this.tipo_impresion_id == 3 || this.tipo_impresion_id == 5 || this.tipo_impresion_id == 7) {
|
||||
this.papelGuardas.init();
|
||||
this.gramajeGuardas.init();
|
||||
this.papelGuardas.onChange(() => self.gramajeGuardas.empty());
|
||||
this.papelGuardas.item.on('select2:select', function() {
|
||||
self.gramajeGuardas.empty()
|
||||
});
|
||||
}
|
||||
|
||||
this.papelNegro.onChange(() => self.gramajeNegro.empty());
|
||||
this.papelNegrohq.onChange(() => self.gramajeNegrohq.empty());
|
||||
this.papelColor.onChange(() => self.gramajeColor.empty());
|
||||
this.papelColorhq.onChange(() => self.gramajeColorhq.empty());
|
||||
this.papelCubierta.onChange(() => self.gramajeCubierta.empty());
|
||||
this.papelNegro.item.on('select2:select', function() {
|
||||
self.gramajeNegro.empty()
|
||||
});
|
||||
this.papelNegrohq.item.on('select2:select', function() {
|
||||
self.gramajeNegrohq.empty()
|
||||
});
|
||||
this.papelColor.item.on('select2:select', function(){
|
||||
self.gramajeColor.empty()
|
||||
});
|
||||
this.papelColorhq.item.on('select2:select', function() {
|
||||
self.gramajeColorhq.empty()
|
||||
});
|
||||
this.papelCubierta.item.on('select2:select', function() {
|
||||
self.gramajeCubierta.empty()
|
||||
});
|
||||
|
||||
this.papelFaja.item.on('select2:select', function() {
|
||||
self.gramajeFaja.empty()
|
||||
});
|
||||
|
||||
|
||||
this.tipo_impresion.select2({
|
||||
|
||||
Reference in New Issue
Block a user