mirror of https://github.com/jlelse/GoBlog
Fix JS
This commit is contained in:
parent
2437ed70d7
commit
f16952fad1
|
@ -2,7 +2,7 @@
|
|||
Array.from(document.querySelectorAll('form input.confirm')).forEach(element => {
|
||||
let showed = false
|
||||
element.form.addEventListener('submit', event => {
|
||||
if (!showed) {
|
||||
if (event.submitter == element && !showed) {
|
||||
event.preventDefault()
|
||||
element.value = '…'
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in New Issue