Fix idoc sequence and collapse menus
This commit is contained in:
@@ -126,8 +126,8 @@
|
||||
|
||||
<div id="container">
|
||||
<nav class="touch-nav" aria-label="Workbench Navigation">
|
||||
<section class="nav-section">
|
||||
<h2>TR</h2>
|
||||
<details class="nav-section" open>
|
||||
<summary>TR</summary>
|
||||
<button type="button" class="nav-item active" data-page="Workorder.html">
|
||||
<span>Workorder</span>
|
||||
<small>Aktivierung</small>
|
||||
@@ -136,9 +136,9 @@
|
||||
<span>Station</span>
|
||||
<small>Fertigungsbaum</small>
|
||||
</button>
|
||||
</section>
|
||||
<section class="nav-section">
|
||||
<h2>PM</h2>
|
||||
</details>
|
||||
<details class="nav-section">
|
||||
<summary>PM</summary>
|
||||
<button type="button" class="nav-item" data-page="pm_seite1.html">
|
||||
<span>Seite 1</span>
|
||||
<small>PM</small>
|
||||
@@ -147,9 +147,9 @@
|
||||
<span>Seite 2</span>
|
||||
<small>PM</small>
|
||||
</button>
|
||||
</section>
|
||||
<section class="nav-section">
|
||||
<h2>Import</h2>
|
||||
</details>
|
||||
<details class="nav-section">
|
||||
<summary>Import</summary>
|
||||
<button type="button" class="nav-item" data-page="PARTImport.html">
|
||||
<span>PART</span>
|
||||
<small>Material</small>
|
||||
@@ -170,7 +170,7 @@
|
||||
<span>UserImport</span>
|
||||
<small>Benutzer</small>
|
||||
</button>
|
||||
</section>
|
||||
</details>
|
||||
</nav>
|
||||
<!-- Use an IFRAME instead of a <div id="content"> -->
|
||||
<iframe id="contentFrame" name="contentFrame" width="100%" height="100%"></iframe>
|
||||
@@ -222,6 +222,10 @@
|
||||
function openPage(button) {
|
||||
navItems.forEach(item => item.classList.remove("active"));
|
||||
button.classList.add("active");
|
||||
const section = button.closest(".nav-section");
|
||||
if (section) {
|
||||
section.open = true;
|
||||
}
|
||||
frame.src = button.dataset.page;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user