Files
dojo/public/admin/tienda/tienda.js

24 lines
814 B
JavaScript
Raw Normal View History

2019-03-28 04:06:59 -06:00
d3.select("select#suser").on("change",function(){
var uid=d3.select("select#suser").node().value;
d3.json("/admin/json/usuarios/"+uid ,function(d){
if(d !=undefined) {if(d != 0){
d3.select("p#correo").text(d.correo);
d3.select("p#tel").text(d.tel);
d3.select("p#obs").text(d.obs);
d3.select("p#ultima").text(d.ultima);
}}});
});
d3.select("select#sentry").on("change",function(){
var tid=d3.select("select#sentry").node().value;
d3.json("/admin/json/tienda/"+tid ,function(d){
if(d !=undefined) {if(d != 0){
d3.select("p#imagen").text(d.imagen);
d3.select("p#precio").text(d.precio);
d3.select("p#descripcion").text(d.descripcion);
d3.select("p#vigencia").text(d.vigencia);
d3.select("p#entrega").text(d.entrega);
}}});
});