fix /live

master
Aevann1 2022-09-24 02:18:24 +02:00
parent 337e27ef84
commit 2baae488d1
1 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@
</style> </style>
<script> <script>
function go_to(e, link) { function go_to(e, link) {
if (!e.target instanceof HTMLInputElement) if (!e.target.classList.contains('donttrigger'))
window.open(link, '_blank'); window.open(link, '_blank');
} }
</script> </script>
@ -59,8 +59,8 @@
<form action="/live/remove" method="post"> <form action="/live/remove" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}"> <input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="id" value="{{id}}"> <input type="hidden" name="id" value="{{id}}">
<button autocomplete="off" class="btn btn-primary ml-auto" onclick="this.nextElementSibling.classList.remove('d-none');this.classList.add('d-none')">Remove</button> <button autocomplete="off" class="btn btn-primary ml-auto donttrigger" onclick="this.nextElementSibling.classList.remove('d-none');this.classList.add('d-none')">Remove</button>
<input autocomplete="off" class="btn btn-primary ml-auto d-none" type="submit" onclick="disable(this)" value="Are you sure?"> <input autocomplete="off" class="btn btn-primary ml-auto d-none donttrigger" type="submit" onclick="disable(this)" value="Are you sure?">
</form> </form>
</td> </td>
{% endif %} {% endif %}
@ -85,8 +85,8 @@
<form action="/live/remove" method="post"> <form action="/live/remove" method="post">
<input type="hidden" name="formkey" value="{{v.formkey}}"> <input type="hidden" name="formkey" value="{{v.formkey}}">
<input type="hidden" name="id" value="{{id}}"> <input type="hidden" name="id" value="{{id}}">
<button autocomplete="off" class="btn btn-primary ml-auto" onclick="this.nextElementSibling.classList.remove('d-none');this.classList.add('d-none')">Remove</button> <button autocomplete="off" class="btn btn-primary ml-auto donttrigger" onclick="this.nextElementSibling.classList.remove('d-none');this.classList.add('d-none')">Remove</button>
<input autocomplete="off" class="btn btn-primary ml-auto d-none" type="submit" onclick="disable(this)" value="Are you sure?"> <input autocomplete="off" class="btn btn-primary ml-auto d-none donttrigger" type="submit" onclick="disable(this)" value="Are you sure?">
</form> </form>
</td> </td>
{% endif %} {% endif %}