diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index 85c4286..c2495fc 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -4,8 +4,8 @@ function addline(ligne){ } -function change_discord(value, data) { - if (value == "{{len}}"){ +function change_discord(value, data, len) { + if (value == len){ document.getElementById("name").value = ""; document.getElementById("submit").value = "Create !"; document.getElementById("successT").checked = false; @@ -24,9 +24,9 @@ function change_discord(value, data) { } } -function change_config(value, data) { +function change_config(value, data, len) { document.getElementById("delete").style.visibility = "hidden"; - if (value == "{{len}}"){ + if (value == len){ document.getElementById("submit").value = "Create !"; document.getElementById("discord").value = "-1"; document.getElementById("proxy").value = "-1"; @@ -53,8 +53,8 @@ function change_config(value, data) { } -function change_proxy(value, data) { - if (value == "{{len}}"){ +function change_proxy(value, data, len) { + if (value == len){ document.getElementById("submit").value = "Create"; document.getElementById("address").value = ""; document.getElementById("port").value = ""; diff --git a/Flask/templates/config.html b/Flask/templates/config.html index 6396921..a751450 100644 --- a/Flask/templates/config.html +++ b/Flask/templates/config.html @@ -51,7 +51,7 @@