mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-24 06:55:14 +00:00
deploy: e8fd58bc59
This commit is contained in:
+8
-1
@@ -79,7 +79,14 @@ function setupRegisterOverlay() {
|
||||
}
|
||||
|
||||
openBtn.addEventListener('click', openOverlay);
|
||||
form.addEventListener('submit', closeOverlay);
|
||||
form.addEventListener('submit', () => {
|
||||
const submit = form.querySelector('[type="submit"]');
|
||||
if (!submit) return;
|
||||
setTimeout(() => {
|
||||
submit.disabled = true;
|
||||
submit.value = 'Submitting...';
|
||||
}, 0);
|
||||
});
|
||||
overlay.addEventListener('click', (e) => {
|
||||
if (e.target === overlay || e.target.closest('.close-register')) closeOverlay();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user