From 5ec25e56d979f9d754027305a5af0530e88888ab Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 2 Feb 2021 04:30:24 +0000 Subject: [PATCH] Bugfix: break on pageload event --- app/js/custom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/custom.js b/app/js/custom.js index 643e4f18..396d5555 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -151,8 +151,10 @@ function contentLoaded() { getAllInterfaces(); setupTabs(); setupBtns(); + break; case "hostapd_conf": loadChannel(); + break; case "dhcpd_conf": loadInterfaceDHCPSelect(); break; @@ -255,7 +257,6 @@ Source: https://en.wikipedia.org/wiki/List_of_WLAN_channels Additional: https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git */ function loadChannelSelect(selected) { - // Fetch wireless regulatory data $.getJSON("config/wireless.json", function(json) { var hw_mode = $('#cbxhwmode').val();