Fix node manager not letting you run bandwidth tests from child displays.

This commit is contained in:
Herbert Wolverson
2023-02-03 14:38:35 +00:00
parent b2be48da8a
commit 89b2eafda7

View File

@@ -64,16 +64,13 @@ function css_getclass(name) {
return rules[name];
}
var firstRun = false;
function updateHostCounts() {
$.get("/api/host_counts", (hc) => {
$("#shapedCount").text(hc[0]);
$("#unshapedCount").text(hc[1]);
setTimeout(updateHostCounts, 5000);
});
if (!firstRun) {
$.get("/api/username", (un) => {
$.get("/api/username", (un) => {
let html = "";
if (un == "Anonymous") {
html = "<a class='nav-link' href='/login'><i class='fa fa-user'></i> Login</a>";
@@ -82,11 +79,9 @@ function updateHostCounts() {
}
$("#currentLogin").html(html);
});
$("#startTest").on('click', () => {
$.get("/api/run_btest", () => {});
});
}
firstRun = true;
$("#startTest").on('click', () => {
$.get("/api/run_btest", () => {});
});
}
function colorReloadButton() {