still testing
This commit is contained in:
parent
83a2b8f33e
commit
c25a744a5c
@ -56,8 +56,7 @@ function change_config(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function change_proxy(value, json) {
|
function change_proxy(value, data) {
|
||||||
data = JSON.parse(json); //convertit le dictionnaire data en JSON
|
|
||||||
if (value == "{{len}}"){
|
if (value == "{{len}}"){
|
||||||
document.getElementById("submit").value = "Create";
|
document.getElementById("submit").value = "Create";
|
||||||
document.getElementById("address").value = "";
|
document.getElementById("address").value = "";
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="comlumn-name"></td>
|
<td class="comlumn-name"></td>
|
||||||
<td>
|
<td>
|
||||||
<select name="select" onchange= 'change_proxy(this.value, {{data|tojson}})'>
|
<select name="select" onchange="data = JSON.parse('{{data|tojson}}'); change_proxy(this.value, data)">
|
||||||
<option selected id="new" value="{{ len }}">Create new proxy</option>
|
<option selected id="new" value="{{ len }}">Create new proxy</option>
|
||||||
{% for i in data %}
|
{% for i in data %}
|
||||||
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user