mirror of
https://github.com/pi-hole/web.git
synced 2026-04-28 12:44:07 +01:00
Add placeholder to the search field to highlight what can be searched for
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -466,6 +466,16 @@ $(function () {
|
||||
$(this).removeClass("pointer");
|
||||
}
|
||||
);
|
||||
|
||||
// Disable autocorrect in the search box
|
||||
var input = $("input[type=search]");
|
||||
if (input !== null) {
|
||||
input.attr("autocomplete", "off");
|
||||
input.attr("autocorrect", "off");
|
||||
input.attr("autocapitalize", "off");
|
||||
input.attr("spellcheck", false);
|
||||
input.attr("placeholder", "Type / Domain / Client");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -484,15 +494,6 @@ $(function () {
|
||||
tableApi.search("");
|
||||
resetColumnsFilters();
|
||||
});
|
||||
|
||||
// Disable autocorrect in the search box
|
||||
var input = document.querySelector("input[type=search]");
|
||||
if (input !== null) {
|
||||
input.setAttribute("autocomplete", "off");
|
||||
input.setAttribute("autocorrect", "off");
|
||||
input.setAttribute("autocapitalize", "off");
|
||||
input.setAttribute("spellcheck", false);
|
||||
}
|
||||
});
|
||||
|
||||
function tooltipText(index, text) {
|
||||
|
||||
Reference in New Issue
Block a user