Cambiar iconos en grid de facturas
This commit is contained in:
parent
3d89724290
commit
6db103caba
|
@ -181,8 +181,13 @@ var toolbar_invoices_filter = [
|
||||||
|
|
||||||
|
|
||||||
function get_icon(tipo){
|
function get_icon(tipo){
|
||||||
var node = "<img src='/static/img/file-" + tipo + ".png' height='20' width='17' style='margin: 5px 0px'/>"
|
icons = {
|
||||||
return node
|
xml: 'fa-file-code-o',
|
||||||
|
pdf: 'fa-file-pdf-o',
|
||||||
|
zip: 'fa-file-zip-o',
|
||||||
|
email: 'fa-envelope-o',
|
||||||
|
}
|
||||||
|
return "<span class='webix_icon " + icons[tipo] + "'></span>"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,8 @@ function validate_nuevo_rfc(){
|
||||||
text: msg,
|
text: msg,
|
||||||
callback:function(result){
|
callback:function(result){
|
||||||
if(result){
|
if(result){
|
||||||
|
msg = 'Agregando empresa, espera la confirmación...'
|
||||||
|
msg_ok(msg)
|
||||||
agregar_empresa(values)
|
agregar_empresa(values)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,18 +100,9 @@ function grid_empresas_click(id, e, node){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//~ function get_empresas(){
|
|
||||||
//~ webix.ajax().get("/values/empresas", function(text, data, xhr) {
|
|
||||||
//~ var values = data.json()
|
|
||||||
//~ $$('grid_empresas').parse(values)
|
|
||||||
//~ })
|
|
||||||
//~ }
|
|
||||||
|
|
||||||
|
|
||||||
webix.ready(function(){
|
webix.ready(function(){
|
||||||
webix.ui(ui_empresas)
|
webix.ui(ui_empresas)
|
||||||
$$('grid_empresas').attachEvent('onItemClick', grid_empresas_click)
|
$$('grid_empresas').attachEvent('onItemClick', grid_empresas_click)
|
||||||
//~ get_empresas()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue