forked from leftypol/leftypol
main.js: rename dopost to camelCase
This commit is contained in:
parent
b77685f8f4
commit
d8ea4c49ad
2 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ function generatePassword() {
|
||||||
return pass;
|
return pass;
|
||||||
}
|
}
|
||||||
|
|
||||||
function dopost(form) {
|
function doPost(form) {
|
||||||
if (form.elements['name']) {
|
if (form.elements['name']) {
|
||||||
localStorage.name = form.elements['name'].value.replace(/( |^)## .+$/, '');
|
localStorage.name = form.elements['name'].value.replace(/( |^)## .+$/, '');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<form
|
<form
|
||||||
name="post" onsubmit="return dopost(this);"
|
name="post" onsubmit="return doPost(this);"
|
||||||
enctype="multipart/form-data"
|
enctype="multipart/form-data"
|
||||||
action="{{ config.post_url }}"
|
action="{{ config.post_url }}"
|
||||||
method="post"
|
method="post"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue