pas mal le version control : 6.2.0 -> 6.2.10

This commit is contained in:
piair 2023-08-26 13:17:57 +02:00
parent fd8f972cf8
commit c072a71c83
5 changed files with 10 additions and 10 deletions

View File

@ -4,8 +4,8 @@ function addline(ligne){
} }
function change_discord(value, data) { function change_discord(value, data, len) {
if (value == "{{len}}"){ if (value == len){
document.getElementById("name").value = ""; document.getElementById("name").value = "";
document.getElementById("submit").value = "Create !"; document.getElementById("submit").value = "Create !";
document.getElementById("successT").checked = false; 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"; document.getElementById("delete").style.visibility = "hidden";
if (value == "{{len}}"){ if (value == len){
document.getElementById("submit").value = "Create !"; document.getElementById("submit").value = "Create !";
document.getElementById("discord").value = "-1"; document.getElementById("discord").value = "-1";
document.getElementById("proxy").value = "-1"; document.getElementById("proxy").value = "-1";
@ -53,8 +53,8 @@ function change_config(value, data) {
} }
function change_proxy(value, data) { function change_proxy(value, data, len) {
if (value == "{{len}}"){ if (value == len){
document.getElementById("submit").value = "Create"; document.getElementById("submit").value = "Create";
document.getElementById("address").value = ""; document.getElementById("address").value = "";
document.getElementById("port").value = ""; document.getElementById("port").value = "";

View File

@ -51,7 +51,7 @@
<tr> <tr>
<td style="width: 10%;">config : </td> <td style="width: 10%;">config : </td>
<td style="width: 40%;"> <td style="width: 40%;">
<select onchange="change_config(this.value, data)" name="config"> <select onchange="change_config(this.value, data, '{{len}}')" name="config">
<option id="config" value="{{len}}">New config</option> <option id="config" value="{{len}}">New config</option>
{% for i in configs %} {% for i in configs %}
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option> <option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>

View File

@ -49,7 +49,7 @@
<tr> <tr>
<td></td> <td></td>
<td> <td>
<select name="select" onchange="change_discord(this.value, data)"> <select name="select" onchange="change_discord(this.value, data, '{{len}}')">
<option selected id="new" value="{{ len }}">Create new Discord config</option> <option selected id="new" value="{{ len }}">Create new Discord config</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>

View File

@ -54,7 +54,7 @@
<td class="comlumn-name"></td> <td class="comlumn-name"></td>
<td> <td>
<script>data = JSON.parse('{{data|tojson}}');</script> <script>data = JSON.parse('{{data|tojson}}');</script>
<select name="select" onchange="change_proxy(this.value, data)"> <select name="select" onchange="change_proxy(this.value, data, '{{len}}')">
<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>

View File

@ -1 +1 @@
v6.2.10 v6.2.11