Implement alias editing views and templates

This commit is contained in:
2022-08-01 18:47:29 +01:00
parent 5a66236828
commit 6b0851ab6f
8 changed files with 152 additions and 61 deletions

17
core/static/modal.js Normal file
View File

@@ -0,0 +1,17 @@
var modal = document.querySelector('.modal'); // assuming you have only 1
var html = document.querySelector('html');
modal.querySelector('.modal-background').addEventListener('click', function(e) {
e.preventDefault();
modal.classList.remove('is-active');
html.classList.remove('is-clipped');
});
modal.querySelector('.modal-close').addEventListener('click', function(e) {
e.preventDefault();
modal.classList.remove('is-active');
html.classList.remove('is-clipped');
});
modal.querySelector('.modal-close-button').addEventListener('click', function(e) {
e.preventDefault();
modal.classList.remove('is-active');
html.classList.remove('is-clipped');
});