feat: show content and wip editing

This commit is contained in:
Per Stark
2025-02-13 11:12:32 +01:00
parent e7c666c054
commit 30de324879
15 changed files with 326 additions and 33 deletions

View File

@@ -18,7 +18,6 @@
</div>
</form>
</div>
<script>
// Auto-open modal when injected
document.getElementById('body_modal').showModal();
@@ -29,5 +28,10 @@
document.getElementById('body_modal').close();
}
});
// Clear modal content on close to prevent browser back from reopening it
document.getElementById('body_modal').addEventListener('close', (evt) => {
evt.target.innerHTML = '';
});
</script>
</dialog>