1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-02 00:59:29 +00:00

Added delete class button to class page

This commit is contained in:
2022-03-14 09:38:29 +00:00
parent aaec1c0904
commit 8b3f8fa19d
2 changed files with 8 additions and 2 deletions

View File

@@ -18,8 +18,7 @@
const classes = document.querySelectorAll('.classes__class');
classes.forEach(c => {
c.addEventListener('click', () => {
window.location.href =
`/admin/class/${c.getAttribute('data-id')}`;
window.location.href = `/admin/class/${c.getAttribute('data-id')}`;
});
});
</script>