diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index dc2b5ef..5790603 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -56,8 +56,8 @@ function change_config(value) { } -function change_proxy(value) { - data = JSON.parse('{{data|tojson}}'); //convertit le dictionnaire data en JSON +function change_proxy(value, json) { + data = JSON.parse(json); //convertit le dictionnaire data en JSON if (value == "{{len}}"){ document.getElementById("submit").value = "Create"; document.getElementById("address").value = ""; diff --git a/Flask/templates/logs.html b/Flask/templates/logs.html index fc5a008..176fe57 100644 --- a/Flask/templates/logs.html +++ b/Flask/templates/logs.html @@ -50,7 +50,8 @@ {{data[i]['name']}} {% endfor %} - + + diff --git a/Flask/templates/proxy.html b/Flask/templates/proxy.html index 5e84e5c..9223a96 100644 --- a/Flask/templates/proxy.html +++ b/Flask/templates/proxy.html @@ -53,7 +53,7 @@ - + Create new proxy {% for i in data %} {{data[i]['name']}}