url change

This commit is contained in:
Harry Bomrah 2017-11-30 18:15:22 +08:00
parent fba24af824
commit aa1078340e
1 changed files with 4 additions and 4 deletions

View File

@ -104,9 +104,9 @@
var school = $("#school_name").val();
type = (type == "School" ? "school_sites" : "orbit_sites" );
if(school != ""){
$("#path").val("/home/rulingcom/" + type + "/" + school + "/");
$("#path").val("/home/rulingcom/" + type + "/" + school);
}else{
$("#path").val("/home/rulingcom/" + type + "/");
$("#path").val("/home/rulingcom/" + type);
}
})
$("#site_name").on("blur",function(){
@ -117,9 +117,9 @@
$("#db_name").val(val);
type = (type == "School" ? "school_sites" : "orbit_sites" );
if(school != ""){
$("#path").val("/home/rulingcom/" + type + "/" + school + "/")
$("#path").val("/home/rulingcom/" + type + "/" + school);
}else{
$("#path").val("/home/rulingcom/" + type + "/");
$("#path").val("/home/rulingcom/" + type);
}
})
$("#site_construct_site_type").val("School");