trabajando2

This commit is contained in:
2025-07-18 17:56:39 +02:00
parent f73472c729
commit ad8e0ac75b
5 changed files with 149 additions and 0 deletions

View File

@ -111,6 +111,29 @@ class DisenioInterior {
this.disenioInterior.on('click', this.#handleDisenioInterior.bind(this));
this.disenioInterior_color.on('click', this.#handleDisenioInterior.bind(this));
// test
$(document).on('keydown', function (e) {
if (e.ctrlKey && e.key === '.') {
e.preventDefault(); // Evita comportamiento por defecto si es necesario
console.log('Se pulsó Control + .');
new Ajax('/configuracion/papelesgenericos/gettipopapel',
{
[self.csrf_token]: self.csrf_hash,
tirada: $('#tirada').val(),
tipo: () => self.getTipoImpresion(),
ancho: self.presupuestoCliente.datosGenerales.getDimensionLibro().ancho,
alto: self.presupuestoCliente.datosGenerales.getDimensionLibro().alto,
solapas: 0,
lomo: 0,
cubierta: 0,
},
{},
(response) => { console.log(response); },
(response) => { console.error(response); }
).get();
}
});
}