Merge branch 'master' into master

This commit is contained in:
Federico Frigo
2022-04-06 09:21:29 +02:00
committed by GitHub
12 changed files with 116 additions and 47 deletions

View File

@@ -459,6 +459,19 @@ $(document).on("click", ".js-toggle-password", function(e) {
}
});
$(document).on("input", ".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() ];