Support non-admin neighbor info in mobile view. (#1714)

This commit is contained in:
Tim Wilkinson 2024-11-21 20:56:14 -08:00 committed by GitHub
parent 7218383807
commit 9a75683f2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

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

View File

@ -116,6 +116,7 @@
{{_R("local-and-neighbor-devices")}}
</div>
</div>
{{_R("activator", { id: "local-and-neighbor-devices", activate: [ ".noctrl:first-child", ".noctrl:nth-child(2)" ] })}}
<div id="radio-and-antenna">
<hr>
{{_R("radio-and-antenna")}}