diff --git a/app/js/custom.js b/app/js/custom.js index 09b6176f..10ab8b6c 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -365,7 +365,9 @@ function loadChannelSelect(selected) { var countries_5Ghz_max48ch = data["5Ghz_max48ch"].countries; // Map selected hw_mode and country to determine channel list - if (($.inArray(country_code, countries_2_4Ghz_max11ch) !== -1) && (hw_mode !== 'ac') ) { + if (hw_mode === 'a') { + selectablechannels = data["5Ghz_max48ch"].channels; + } else if (($.inArray(country_code, countries_2_4Ghz_max11ch) !== -1) && (hw_mode !== 'ac') ) { selectablechannels = data["2_4GHz_max11ch"].channels; } else if (($.inArray(country_code, countries_2_4Ghz_max14ch) !== -1) && (hw_mode === 'b')) { selectablechannels = data["2_4GHz_max14ch"].channels; @@ -477,19 +479,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() ]; diff --git a/templates/wifi_stations/network.php b/templates/wifi_stations/network.php index e0a9684c..abac081a 100644 --- a/templates/wifi_stations/network.php +++ b/templates/wifi_stations/network.php @@ -62,7 +62,7 @@ - +
@@ -75,7 +75,7 @@ " id="update" name="update" data-toggle="modal" data-target="#configureClientModal" /> - " id="update" name="update" data-toggle="modal" data-target="#configureClientModal" /> + " id="update" name="update" data-toggle="modal" data-target="#configureClientModal" /> " name="delete" data-toggle="modal" data-target="#configureClientModal" />