parriba
This commit is contained in:
@@ -76,6 +76,7 @@ div.update{
|
||||
article.edit input[type=submit]{
|
||||
margin:15px;
|
||||
}
|
||||
div#cimg,
|
||||
div#esimg{
|
||||
height:180px;
|
||||
width:180px;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user