Update Scriptmonkey_Beta.ps1
This commit is contained in:
@@ -989,6 +989,21 @@ function updateOffboardSelectAll() {
|
|||||||
master.checked = Array.from(children).every(cb => cb.checked);
|
master.checked = Array.from(children).every(cb => cb.checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Attach off-board checkbox change handlers
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const offChildren = document.querySelectorAll(
|
||||||
|
'#offboardTab input[type=checkbox]:not(#offboardSelectAll)'
|
||||||
|
);
|
||||||
|
|
||||||
|
offChildren.forEach(cb =>
|
||||||
|
cb.addEventListener('change', updateOffboardSelectAll)
|
||||||
|
);
|
||||||
|
|
||||||
|
// Initialize master checkbox state on load
|
||||||
|
updateOffboardSelectAll();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
// DattoRMM Options
|
// DattoRMM Options
|
||||||
@@ -1300,6 +1315,9 @@ $style
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div> <!-- end onboardTab -->
|
||||||
|
|
||||||
|
|
||||||
<div id="offboardTab" class="tab-content">
|
<div id="offboardTab" class="tab-content">
|
||||||
<h2>Off-Boarding</h2>
|
<h2>Off-Boarding</h2>
|
||||||
<div class="columns-container">
|
<div class="columns-container">
|
||||||
|
|||||||
Reference in New Issue
Block a user