mirror of https://github.com/aredn/aredn.git
Support non-admin neighbor info in mobile view. (#1714)
This commit is contained in:
parent
7218383807
commit
9a75683f2e
|
@ -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;
|
||||
|
|
|
@ -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")}}
|
||||
|
|
Loading…
Reference in New Issue