master
Aevann1 2022-09-24 02:11:40 +02:00
parent d2021c3b94
commit b32a399925
2 changed files with 4 additions and 3 deletions

View File

@ -510,4 +510,4 @@ if SITE == 'pcmemes.net':
g.db.delete(streamer)
live_cached = cache.get('live_cached') or [[],[]]
return render_template('live.html', v=v, live=live_cached()[0], offline=live_cached()[1], msg="Channel removed successfuly!")
return render_template('live.html', v=v, live=live_cached[0], offline=live_cached[1], msg="Channel removed successfuly!")

View File

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