Merge pull request #1100 from Ghalid/patch-1

Disable text correction features, change types to make input fields easier to type in (especially for mobile devices)
This commit is contained in:
DL6ER
2020-04-07 13:59:44 +02:00
committed by GitHub
14 changed files with 67 additions and 24 deletions

View File

@@ -62,6 +62,12 @@ $(document).ready(function() {
$(".deleteCustomDNS").on("click", deleteCustomDNS);
}
});
// 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);
});
function addCustomDNS() {

View File

@@ -96,6 +96,12 @@ $(document).ready(function() {
$("#ip-custom").val("");
$("#ip-custom").prop("disabled", $("#select option:selected").val() !== "custom");
});
// 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);
});
function initTable() {

View File

@@ -125,6 +125,12 @@ $(document).ready(function() {
$("#ip-custom").val("");
$("#ip-custom").prop("disabled", $("#select option:selected").val() !== "custom");
});
// 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);
});
function initTable() {

View File

@@ -96,6 +96,12 @@ $(document).ready(function() {
$("#ip-custom").val("");
$("#ip-custom").prop("disabled", $("#select option:selected").val() !== "custom");
});
// 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);
});
function initTable() {

View File

@@ -190,4 +190,10 @@ $(document).ready(function() {
}
]
});
// 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);
});

View File

@@ -439,4 +439,10 @@ $(document).ready(function() {
tableApi.search("").draw();
$("#resetButton").hide();
});
// 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);
});

View File

@@ -258,4 +258,11 @@ $(document).ready(function() {
alInfo.hide();
});
}
// 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);
});