Fix autocomplete bug on group pages.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-05-13 23:54:22 +02:00
parent 9c6a582cb2
commit 6b8e12a0d1
4 changed files with 31 additions and 16 deletions
+8 -6
View File
@@ -52,12 +52,6 @@ $(document).ready(function () {
$("#wildcard_checkbox").prop("checked", false);
}
});
// Disable autocorrect in the search box
var input = document.querySelector("input[type=search]");
input.setAttribute("autocomplete", "off");
input.setAttribute("autocorrect", "off");
input.setAttribute("autocapitalize", "off");
input.setAttribute("spellcheck", false);
$("#add2black, #add2white").on("click", addDomain);
@@ -286,6 +280,14 @@ function initTable() {
}
}
});
// 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);
}
table.on("order.dt", function () {
var order = table.order();