mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
trabajando2
This commit is contained in:
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user