v2.15.1 - Fix: pulsanti Collapse/Expand non compaiono su view.py (solo wato.py)
This commit is contained in:
parent
419ae557b7
commit
3a8ffdd824
1 changed files with 1 additions and 0 deletions
|
|
@ -1269,6 +1269,7 @@
|
||||||
|
|
||||||
function addAccordionToggleButtons(doc) {
|
function addAccordionToggleButtons(doc) {
|
||||||
if (doc.body.dataset.cmkAccToggle === '1') return;
|
if (doc.body.dataset.cmkAccToggle === '1') return;
|
||||||
|
try { if (!/\/wato\.py/.test(doc.location.pathname)) return; } catch (e) { return; }
|
||||||
const menues = doc.querySelector('td.menues');
|
const menues = doc.querySelector('td.menues');
|
||||||
if (!menues) return;
|
if (!menues) return;
|
||||||
if (!doc.querySelector('table.nform') && !doc.querySelector('div.foldable')) return;
|
if (!doc.querySelector('table.nform') && !doc.querySelector('div.foldable')) return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue