docs + #457 work

This commit is contained in:
Jokob-sk
2023-10-01 16:09:17 +11:00
parent c412f025ca
commit 2a0f464c63
6 changed files with 21 additions and 7 deletions

View File

@@ -767,10 +767,18 @@
// ---------------------------------------------------------------------------
function updateLeaf(leafMac,nodeMac)
{
console.log(leafMac)
console.log(nodeMac)
saveData('updateNetworkLeaf', leafMac, nodeMac);
setTimeout("location.reload();", 1000); // refresh page after 1s
console.log(leafMac) // child
console.log(nodeMac) // parent
// prevent the assignment of the Internet root node avoiding recursion when generating the network tree topology
if(leafMac.toLowerCase().includes('internet'))
{
showMessage(getString('Network_Cant_Assign'))
}
else{
saveData('updateNetworkLeaf', leafMac, nodeMac);
setTimeout("location.reload();", 500); // refresh page
}
}