mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 03:39:28 +00:00
Generalise test onclick handler
This commit is contained in:
@@ -24,13 +24,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
const tests = document.querySelectorAll('.tests tbody tr');
|
||||
tests.forEach(t => {
|
||||
t.addEventListener('click', () => {
|
||||
window.location.href =
|
||||
`/admin/test/${t.getAttribute('data-id')}`;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user