Remove pw requirement for open networks #1039

This commit is contained in:
billz
2021-11-12 16:45:19 +00:00
parent 0548a05f86
commit c9c321c435
2 changed files with 3 additions and 16 deletions

View File

@@ -343,19 +343,6 @@ $(document).on("click", ".js-toggle-password", function(e) {
}
});
$(document).on("keyup", ".js-validate-psk", function(e) {
var field = $(e.target);
var colors = field.data("colors").split(",");
var target = $(field.data("target"));
if (field.val().length < 8 || field.val().length > 63) {
field.css("backgroundColor", colors[0]);
target.attr("disabled", true);
} else {
field.css("backgroundColor", colors[1]);
target.attr("disabled", false);
}
});
$(function() {
$('#theme-select').change(function() {
var theme = themes[$( "#theme-select" ).val() ];