|
|
|
@ -317,11 +317,11 @@ class NewHeader extends Component {
|
|
|
|
|
})
|
|
|
|
|
if(submitapplicationssum===0){
|
|
|
|
|
if(submitapplicationsvaluedata!=undefined){
|
|
|
|
|
window.location.href = "https://www.educoder.net/courses/"+submitapplicationsvaluedata;
|
|
|
|
|
window.location.href = "/courses/"+submitapplicationsvaluedata;
|
|
|
|
|
}
|
|
|
|
|
}else if(submitapplicationssum===1){
|
|
|
|
|
if(submitapplicationsvaluedata!=undefined){
|
|
|
|
|
window.location.href = "https://www.educoder.net/projects/"+submitapplicationsvaluedata;
|
|
|
|
|
window.location.href = "/projects/"+submitapplicationsvaluedata;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -480,7 +480,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(value===0){
|
|
|
|
|
let url="https://www.educoder.net/courses/join_course_multi_role.json"
|
|
|
|
|
let url="/courses/join_course_multi_role.json"
|
|
|
|
|
const form = new FormData();
|
|
|
|
|
form.append('invite_code', tojoinclasstitle);
|
|
|
|
|
form.append('role', pamst);
|
|
|
|
@ -526,7 +526,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(value===1){
|
|
|
|
|
let url="https://www.educoder.net/applied_project/applied_project_info.json"
|
|
|
|
|
let url="/applied_project/applied_project_info.json"
|
|
|
|
|
const form = new FormData();
|
|
|
|
|
form.append('invite_code', tojoinclasstitle);
|
|
|
|
|
form.append('member', RadioGroupvalue);
|
|
|
|
|