diff --git a/static/js/main.js b/static/js/main.js index ef81572..7c2d56c 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -190,7 +190,7 @@ function get_admin(type) {
Description:
Lieu:
Début:
-
Fin:
+
Fin:
Ajouter une activité
@@ -210,7 +210,7 @@ function get_admin(type) {
Description:
Lieu:
Début:
-
Fin:
+
Fin:
UID: ${activityData[entry].activityUid}
@@ -270,8 +270,8 @@ function refreshListener() { success: function (data) { if(data.success) { let btnElems = $("#"+uid).children()[6]; - btnElems.children()[0].style.display = "none"; - btnElems.children()[2].style.display = "flex"; + btnElems.children()[0].css("display", "none"); + btnElems.children()[2].css("display", "flex"); } else { if (data.why == "Not authentificated") { show_page('#login-page'); @@ -450,11 +450,11 @@ function refreshListener() { } }); }) - $("activityType").on("change", function() { + $("#activityType").on("change", function() { if (this.value == "treasure") { - $("#activity-end-add").style.display = "none"; + $("#activity-end-add").css("display", "none"); } else if (this.value == "event") { - $("#activity-end-add").style.display = "flex"; + $("#activity-end-add").css("display", "flex"); } }) $(".activity-btn-add").click((e) => {