mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-22 10:36:03 +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) {
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
document.getElementById('whoisButton').click();
|
||||
}
|
||||
});
|
||||
const captchaInput = document.getElementById('captchaInput');
|
||||
if (captchaInput) {
|
||||
captchaInput.addEventListener('keypress', function(event) {
|
||||
if (event.key === 'Enter' && !captchaInput.disabled) {
|
||||
event.preventDefault();
|
||||
document.getElementById('whoisButton').click();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
document.getElementById('whoisButton').addEventListener('click', function() {
|
||||
if (!validateInput()) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue