1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-09-24 11:38:24 +02:00

Prevents double submit when moving a thread.

I probably moved 1000 of threads and if you double click on the submit button it duplicates the moved thread.
This commit is contained in:
H0K4 2017-11-05 18:03:20 +01:00 committed by GitHub
parent c2f7073dd4
commit 767e8f5d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
<form action="?/{{ board }}/move/{{ post }}" method="post">
<form action="?/{{ board }}/move/{{ post }}" method="post" onsubmit="myButton.disabled = true; return true;">
<input type="hidden" name="token" value="{{ token }}">
<table>
<tr>