selected network
This commit is contained in:
parent
8002659f41
commit
22dca4fe66
@ -3303,3 +3303,17 @@ selectMenu.addEventListener("change", function() {
|
|||||||
pElement.textContent = selectedValue + " Settings - Changes detected.";
|
pElement.textContent = selectedValue + " Settings - Changes detected.";
|
||||||
pElement2.innerHTML = selectedValue + " Settings -" + "<br>" + " Saved!";
|
pElement2.innerHTML = selectedValue + " Settings -" + "<br>" + " Saved!";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// load selected network item into ssid input
|
||||||
|
function sendNetworkToSSID(element) {
|
||||||
|
var networksList = document.getElementById('networks-list');
|
||||||
|
var lis = networksList.querySelectorAll("li");
|
||||||
|
var ssid_input = document.getElementById('wifi-ssid-input');
|
||||||
|
var value = element.innerText;
|
||||||
|
lis.forEach(function(li) {
|
||||||
|
li.classList.remove("active");
|
||||||
|
});
|
||||||
|
ssid_input.value = value;
|
||||||
|
element.classList.add("active");
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user