Mon commit initial
This commit is contained in:
9
static/js/detail_course.js
Normal file
9
static/js/detail_course.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const $ = (id) => document.getElementById(id);
|
||||
|
||||
const course_terminer = $("course-terminer").dataset.state;
|
||||
if(course_terminer === "True"){
|
||||
$("course-terminer").checked = true;
|
||||
document.querySelectorAll(".enregistrerButton").forEach(button => {
|
||||
button.style.display = "none";
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user