Development

This commit is contained in:
Matthew Grotke 2026-05-23 00:37:35 -04:00
parent 226a2e2e06
commit 5cd469f898
2 changed files with 211 additions and 203 deletions

View file

@ -1525,6 +1525,14 @@ def _render_nav_item(item, active_view, level, in_dropdown=False, inherited_req=
def _inline_js():
return r"""
function showCard(el) {
el.style.display = '';
el.classList.remove('card-reveal');
void el.offsetWidth;
el.classList.add('card-reveal');
el.addEventListener('animationend', function() { el.classList.remove('card-reveal'); }, {once: true});
}
function prefixToDotted(n) {
if (n < 1 || n > 30) return '';
var mask = ((0xFFFFFFFF << (32 - n)) >>> 0);
@ -1866,7 +1874,7 @@ document.querySelectorAll('.row-edit-btn').forEach(function(btn) {
field.value = row[key] != null ? String(row[key]) : '';
}
});
target.style.display = '';
showCard(target);
target.scrollIntoView({behavior: 'smooth', block: 'nearest'});
});
});
@ -2405,7 +2413,7 @@ function startApplyPoller(uuid, bar, mine) {
var origMacField = form.querySelector('[name="original_mac"]');
if (origMacField) origMacField.value = originalMac;
if (form._resetDirtyState) form._resetDirtyState();
card.style.display = '';
showCard(card);
card.scrollIntoView({behavior: 'smooth', block: 'nearest'});
});
});