modificado el link a cliente (icono busqueda) desde presupuesto admin

This commit is contained in:
2025-03-26 19:03:08 +01:00
parent f2aa8f6287
commit f89f3bf00f
3 changed files with 7 additions and 8 deletions

View File

@ -16,9 +16,7 @@ class DatosGenerales{
this.numeroEdicion = this.domItem.find('#numeroEdicion');
this.isbn = this.domItem.find('#isbn');
this.openCliente = this.domItem.find('#openCliente');
this.cliente = new ClassSelect($('#clienteId'), '/clientes/cliente/getSelect2', 'Seleccione cliente');
this.pais = new ClassSelect($('#paisId'), '/paises/menuitems2', 'Seleccione País');
this.referenciaCliente = this.domItem.find('#referenciaCliente');
@ -34,10 +32,7 @@ class DatosGenerales{
allowClear: false,
});
this.openCliente.click(()=>{
const urlObj = new URL(window.location.href);
window.open(`${urlObj.origin}` + '/clientes/cliente/edit/' + this.cliente.getVal());
});
}
cargarDatos(datos){