This commit is contained in:
mynah
2020-01-22 18:22:31 -06:00
parent f16d579996
commit 174f4b0756
38 changed files with 503 additions and 473 deletions

View File

@@ -1,6 +1,6 @@
d3.select("li#evento").style("background-color","#cedeef");
var li = d3.select("article.label","ul").selectAll("li");
var img_path = "/home/cal/img/";
var img_path = "/proc/cal/img/";
var json_path = "/admin/json/";
/* menu hide and show edit window*/
li.on("click",function(){
@@ -46,10 +46,21 @@ d3.select("select#cprev").on("change",function(){
d3.json(json_path+"course/"+cprev_id ,function(d){
if(d!=undefined){if(d.cid != 0){
d3.select("input#cname").attr("value",d.cname);
d3.select("input#csubname").attr("value",d.csubname);
d3.select("textarea#cdesc").text(d.cdesc);
d3.select("input#cmas").attr("value",d.mas);
d3.select("textarea#csubjects").text(d.csubjects);
d3.select("textarea#cservices").text(d.cservices);
}} }); });
function updateImagea(){
var iname=d3.select("select#cimga").node().value;
if(iname != 0){
d3.select("div#cimg").style("background-image","url("+img_path+iname+")");}
else{ d3.select("div#cimg").style("background-image","none"); }
}
d3.select("select#cimga").on("change",updateImagea);
/*preload form content for place*/
d3.select("select#pprev").on("change",function(){
var pprev_id=d3.select("select#pprev").node().value;