Reverting files to correct ones

This commit is contained in:
Federico Frigo
2022-04-10 20:09:23 +02:00
parent b386f5285a
commit 00fe51f005
12 changed files with 47 additions and 116 deletions

View File

@@ -459,19 +459,6 @@ $(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() ];