Implement non-destructive Remove & Archive lifecycle system across assets, locations, tags, and shortlinks

This commit is contained in:
lucio committed 2026-05-21 18:31:24 -07:00
1 parent 3391257f6c
commit 960c375557
20 files changed
+1751 -185

No files matched your search

+27
View File
@@ -96,3 +96,30 @@ function initRoomTagLock() {
// Run immediately on page load to lock the default/current room tag
updateRoomTag();
}
// 4. Dropdown Action Menu Manager
function toggleActionsDropdown(btn, event) {
if (event) {
event.stopPropagation();
event.preventDefault();
}
const container = btn.parentElement;
const isShown = container.classList.contains("show");
// Close any other open dropdowns first
document.querySelectorAll(".actions-dropdown").forEach(d => {
d.classList.remove("show");
});
if (!isShown) {
container.classList.add("show");
}
}
// Close dropdowns on outside click
document.addEventListener("click", () => {
document.querySelectorAll(".actions-dropdown").forEach(d => {
d.classList.remove("show");
});
});