From 702e4156e527711b8c71288bd3519fba26d0739d Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Tue, 3 Jan 2023 20:48:52 +0100 Subject: [PATCH] bla --- static/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index 1387000..ef81572 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -89,7 +89,7 @@ $("#admin-activity").click(() => { }) function get_admin(type) { - $("#admin-content").innerHTML = ""; + $("#admin-content").empty(); $.ajax({ type: "POST", url: base_url + "get", @@ -326,7 +326,7 @@ function refreshListener() { success: function (data) { if(data.success) { $("#"+uid).remove(); - $("#prankDone").innerHTML = parseInt($("#prankDone").innerHTML) + 1; + $("#prankDone")[0].innerHTML = "Nombre totale de mission achevées: " + (parseInt($("#prankDone")[0].innerHTML.replace("Nombre totale de mission achevées: ", "")) + 1); } else { if (data.why == "Not authentificated") { show_page('#login-page');