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:
Ghalid
2019-12-21 14:32:02 -05:00
parent 40d7e1498e
commit 1df9c4049b
4 changed files with 20 additions and 28 deletions

View File

@@ -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()