mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: fix form submit event
This commit is contained in:
1 parent
0e356327b2
commit
7a6c19fbc5
2 files changed
+2
-2
No files matched your search
@@ -14,7 +14,7 @@ const formPage = new AutoloadPage('formPage', () => {
|
|||||||
|
|
||||||
const submitting = {};
|
const submitting = {};
|
||||||
$(document).on('click', '[type="submit"]', (ev) => {
|
$(document).on('click', '[type="submit"]', (ev) => {
|
||||||
if (!submitting[ev.currentTarget]) ev.preventDefault();
|
if (submitting[ev.currentTarget]) ev.preventDefault();
|
||||||
submitting[ev.currentTarget] = true;
|
submitting[ev.currentTarget] = true;
|
||||||
delay(5000).then(() => { submitting[ev.currentTarget] = false; });
|
delay(5000).then(() => { submitting[ev.currentTarget] = false; });
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.6.14",
|
"version": "4.6.17",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user