mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Disable autocorrect in search boxes
Signed-off-by: Ghalid <24234921+Ghalid@users.noreply.github.com>
This commit is contained in:
@@ -46,6 +46,14 @@ $(document).ready(function() {
|
||||
$('.deleteCustomDNS').on('click', deleteCustomDNS);
|
||||
}
|
||||
});
|
||||
// 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)
|
||||
})
|
||||
});
|
||||
|
||||
function addCustomDNS()
|
||||
|
||||
@@ -170,4 +170,12 @@ $(document).ready(function() {
|
||||
"defaultContent": ""
|
||||
} ]
|
||||
});
|
||||
// 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)
|
||||
})
|
||||
} );
|
||||
|
||||
@@ -395,4 +395,13 @@ $(document).ready(function() {
|
||||
} );
|
||||
|
||||
$("#resetButton").click( function () { tableApi.search("").draw(); $("#resetButton").hide(); } );
|
||||
|
||||
// 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)
|
||||
})
|
||||
} );
|
||||
|
||||
@@ -251,4 +251,12 @@ $(document).ready(function(){
|
||||
{
|
||||
alInfo.delay(3000).fadeOut(2000, function() { alInfo.hide(); });
|
||||
}
|
||||
// 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)
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user