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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user