Cambiar iconos en grid de facturas

This commit is contained in:
Mauricio Baeza 2017-12-03 23:36:47 -06:00
parent 3d89724290
commit 6db103caba
2 changed files with 9 additions and 11 deletions

View File

@ -181,8 +181,13 @@ var toolbar_invoices_filter = [
function get_icon(tipo){
var node = "<img src='/static/img/file-" + tipo + ".png' height='20' width='17' style='margin: 5px 0px'/>"
return node
icons = {
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>"
}

View File

@ -52,6 +52,8 @@ function validate_nuevo_rfc(){
text: msg,
callback:function(result){
if(result){
msg = 'Agregando empresa, espera la confirmación...'
msg_ok(msg)
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.ui(ui_empresas)
$$('grid_empresas').attachEvent('onItemClick', grid_empresas_click)
//~ get_empresas()
})
</script>