main.js: rename dopost to camelCase

This commit is contained in:
Zankaria 2024-08-04 15:13:05 +02:00
parent 990f27e80b
commit eb67076e60
2 changed files with 6 additions and 6 deletions

View File

@ -252,7 +252,7 @@ function generatePassword() {
return pass;
}
function dopost(form) {
function doPost(form) {
if (form.elements['name']) {
localStorage.name = form.elements['name'].value.replace(/( |^)## .+$/, '');
}

View File

@ -1,4 +1,4 @@
<form name="post" onsubmit="return dopost(this);" enctype="multipart/form-data" action="{{ config.post_url }}" method="post">
<form name="post" onsubmit="return doPost(this);" enctype="multipart/form-data" action="{{ config.post_url }}" method="post">
{{ antibot.html() }}
{% if id %}<input type="hidden" name="thread" value="{{ id }}">{% endif %}
{{ antibot.html() }}