aaaaaaaa
This commit is contained in:
parent
0d9c128a2c
commit
61eb6dfe6e
|
@ -125,10 +125,10 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="submit" class="confirm" name="data" id="submit" value="Create !" class="button"/>
|
<input type="submit" class="confirm" name="data" id="submit" value="Create !" class="button" style="width:90%;"/>
|
||||||
</td>
|
</td>
|
||||||
<td class="left-button">
|
<td class="left-button">
|
||||||
<input type="submit" name="data" id="submit" value="delete" class="ban"/>
|
<input type="submit" name="data" id="delete" value="delete" class="ban" style="visibility: hidden;"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
<script>
|
<script>
|
||||||
function changecat(value) {
|
function changecat(value) {
|
||||||
data = JSON.parse('{{data|tojson}}'); //convertit le dictionnaire data en JSON
|
data = JSON.parse('{{data|tojson}}'); //convertit le dictionnaire data en JSON
|
||||||
console.log(this.value)
|
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";
|
||||||
|
@ -154,6 +154,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
document.getElementById("delete").style.visibility = "visible";
|
||||||
document.getElementById("submit").value = "Update !";
|
document.getElementById("submit").value = "Update !";
|
||||||
document.getElementById("discord").value = data[parseInt(value)]["discord"];
|
document.getElementById("discord").value = data[parseInt(value)]["discord"];
|
||||||
document.getElementById("proxy").value = data[parseInt(value)]["proxy"];
|
document.getElementById("proxy").value = data[parseInt(value)]["proxy"];
|
||||||
|
|
Loading…
Reference in New Issue