pas mal le version control : 6.2.0 -> 6.2.10
This commit is contained in:
parent
fd8f972cf8
commit
c072a71c83
@ -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 = "";
|
||||
|
@ -51,7 +51,7 @@
|
||||
<tr>
|
||||
<td style="width: 10%;">config : </td>
|
||||
<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>
|
||||
{% for i in configs %}
|
||||
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>
|
||||
|
@ -49,7 +49,7 @@
|
||||
<tr>
|
||||
<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>
|
||||
{% for i in data %}
|
||||
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
||||
|
@ -54,7 +54,7 @@
|
||||
<td class="comlumn-name"></td>
|
||||
<td>
|
||||
<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>
|
||||
{% for i in data %}
|
||||
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
||||
|
Loading…
Reference in New Issue
Block a user