Fix - Mostrar empresas en UI
This commit is contained in:
parent
b59c9ae000
commit
191774f0e3
|
@ -12,6 +12,7 @@ class AppEmpresas(object):
|
|||
|
||||
@falcon.after(get_template)
|
||||
def on_get(self, req, resp):
|
||||
values = req.params
|
||||
resp.status = falcon.HTTP_200
|
||||
|
||||
def on_post(self, req, resp):
|
||||
|
|
|
@ -34,7 +34,7 @@ class AuthMiddleware(object):
|
|||
|
||||
def process_resource(self, req, resp, resource, params):
|
||||
id_session = req.cookies.get('beaker.session.id', '')
|
||||
if req.path == '/empresas':
|
||||
if req.path == '/empresas' or req.path == '/values/empresas':
|
||||
if MV:
|
||||
pass
|
||||
else:
|
||||
|
|
|
@ -98,9 +98,18 @@ 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>
|
||||
|
|
Loading…
Reference in New Issue