mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
There should only be one search input on each page so there doesn't need to be an array anyway, remove arrow functions as per https://github.com/pi-hole/AdminLTE/pull/1100\#pullrequestreview-335618314
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com> Remove const Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
This commit is contained in:
@@ -47,13 +47,11 @@ $(document).ready(function() {
|
||||
}
|
||||
});
|
||||
// Disable autocorrect in the search box
|
||||
const inputs = document.querySelectorAll('input[type=search]');
|
||||
inputs.forEach(input => {
|
||||
input.setAttribute('autocomplete', 'off')
|
||||
input.setAttribute('autocorrect', 'off')
|
||||
input.setAttribute('autocapitalize', 'off')
|
||||
input.setAttribute('spellcheck', false)
|
||||
})
|
||||
input = document.querySelector('input[type=search]');
|
||||
input.setAttribute('autocomplete', 'off')
|
||||
input.setAttribute('autocorrect', 'off')
|
||||
input.setAttribute('autocapitalize', 'off')
|
||||
input.setAttribute('spellcheck', false)
|
||||
});
|
||||
|
||||
function addCustomDNS()
|
||||
|
||||
Reference in New Issue
Block a user