From 9a75683f2ed404ac4a624e2944cb1153e547c3fa Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Thu, 21 Nov 2024 20:56:14 -0800 Subject: [PATCH] Support non-admin neighbor info in mobile view. (#1714) --- files/app/main/app.ut | 12 ++++++------ files/app/partial/status.ut | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/files/app/main/app.ut b/files/app/main/app.ut index 0b722b7d..57045d14 100755 --- a/files/app/main/app.ut +++ b/files/app/main/app.ut @@ -88,7 +88,7 @@ (function(){ const m = document.getElementById("ctrl-modal"); document.body.addEventListener("click", e => { - const a = htmx.findAll(".popup-menu input[type=checkbox]:checked"); + const a = document.querySelectorAll(".popup-menu input[type=checkbox]:checked"); for (let i = 0; i < a.length; i++) { if (a[i] !== e.target) { a[i].checked = false; @@ -102,11 +102,11 @@ }, true); function dialogDone() { - const d = htmx.find("#dialog-done"); + const d = document.getElementById("dialog-done"); if (d) { setTimeout(function() { let invalid = false; - const f = htmx.findAll(m, "form"); + const f = document.querySelectorAll(m, "form"); for (let i = 0; i < f.length; i++) { if (!f[i].checkValidity()) { invalid = true; @@ -159,7 +159,7 @@ (function(){ const m = document.getElementById("ctrl-modal"); document.body.addEventListener("click", e => { - const a = htmx.findAll(".popup-menu input[type=checkbox]:checked"); + const a = document.querySelectorAll(".popup-menu input[type=checkbox]:checked"); for (let i = 0; i < a.length; i++) { if (a[i] !== e.target) { a[i].checked = false; @@ -173,11 +173,11 @@ }, true); function dialogDone() { - const d = htmx.find("#dialog-done"); + const d = document.getElementById("dialog-done"); if (d) { setTimeout(function() { let invalid = false; - const f = htmx.findAll(m, "form"); + const f = document.querySelectorAll(m, "form"); for (let i = 0; i < f.length; i++) { if (!f[i].checkValidity()) { invalid = true; diff --git a/files/app/partial/status.ut b/files/app/partial/status.ut index 3671d98b..64e4ad08 100755 --- a/files/app/partial/status.ut +++ b/files/app/partial/status.ut @@ -116,6 +116,7 @@ {{_R("local-and-neighbor-devices")}} +{{_R("activator", { id: "local-and-neighbor-devices", activate: [ ".noctrl:first-child", ".noctrl:nth-child(2)" ] })}}

{{_R("radio-and-antenna")}}