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

Added protection against non-teacher deletions, edits etc...

This commit is contained in:
2022-04-22 04:04:35 +00:00
parent c519e1e699
commit b46e7cf7c1
4 changed files with 47 additions and 0 deletions

View File

@@ -69,9 +69,11 @@
</div>
</section>
{{#eq userType 'account'}}
<script>
document.querySelector('.deleteForm').addEventListener('submit', (e) => {
if (!confirm('Delete test?'))
e.preventDefault();
});
</script>
{{/eq}}