mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 18:45:59 +02:00
Fixed small JS issue
This commit is contained in:
parent
c5c3c76795
commit
db83b1aa69
1 changed files with 9 additions and 6 deletions
|
@ -243,12 +243,15 @@ $c['branding'] = isset($c['branding']) ? $c['branding'] : false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('captchaInput').addEventListener('keypress', function(event) {
|
const captchaInput = document.getElementById('captchaInput');
|
||||||
if (event.key === 'Enter') {
|
if (captchaInput) {
|
||||||
event.preventDefault();
|
captchaInput.addEventListener('keypress', function(event) {
|
||||||
document.getElementById('whoisButton').click();
|
if (event.key === 'Enter' && !captchaInput.disabled) {
|
||||||
}
|
event.preventDefault();
|
||||||
});
|
document.getElementById('whoisButton').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById('whoisButton').addEventListener('click', function() {
|
document.getElementById('whoisButton').addEventListener('click', function() {
|
||||||
if (!validateInput()) return;
|
if (!validateInput()) return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue