v1.1.43: fix missing opsEl declaration in toggleInstance

This commit is contained in:
2026-07-30 09:33:27 +04:00
parent 16848544fa
commit de18ea7d43
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -72,6 +72,9 @@ async function selectService(svcId){
async function toggleInstance(iuid){
if(busy) return; // операция выполняется — ничего не делать
selectedInst=iuid; stopPoll();
document.querySelectorAll('[data-iuid]').forEach(e=>e.classList.toggle('active',e.dataset.iuid===iuid));
document.getElementById('params-area').style.display='none';
const opsEl=document.getElementById('ops-'+iuid);
if(opsEl.classList.contains('open')){opsEl.classList.remove('open');return;}
document.querySelectorAll('.inst-ops').forEach(e=>e.classList.remove('open'));