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