mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
validación correcta. Falta que no se guardan las solapas
This commit is contained in:
@ -83,6 +83,8 @@ class DatosGenerales {
|
||||
|
||||
init() {
|
||||
|
||||
const self = this;
|
||||
|
||||
// Selects
|
||||
this.formatoLibro.init();
|
||||
this.cliente.init();
|
||||
@ -100,6 +102,18 @@ class DatosGenerales {
|
||||
this.pagColorConsecutivas.on('change', this.#handPaginasConsecutivas.bind(this));
|
||||
this.papelDiferente.on('change', this.#handlePapelDiferente.bind(this));
|
||||
|
||||
$('.tirada-presupuesto').on('change', () => {
|
||||
let tiradas = self.getTiradas();
|
||||
if (!Array.isArray(tiradas)) {
|
||||
tiradas = [tiradas];
|
||||
}
|
||||
const data = {
|
||||
tiradas: self.getTiradas(),
|
||||
tiradaSeleccionada: self.selectedTirada || parseInt(self.tirada1.val())
|
||||
};
|
||||
$(document).trigger('update-tiradas-envios', data);
|
||||
});
|
||||
|
||||
this.anchoPersonalizado.on("change", this.#checkValue.bind(this));
|
||||
this.altoPersonalizado.on("change", this.#checkValue.bind(this));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user