Bugfix: break on pageload event

This commit is contained in:
billz 2021-02-02 04:30:24 +00:00
parent 23de56b8e7
commit 5ec25e56d9
1 changed files with 2 additions and 1 deletions

View File

@ -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();