1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:59:28 +00:00
Files
stratos/views/partials/dashboardTest.hbs
2022-04-22 03:07:54 +00:00

13 lines
354 B
Handlebars

<tr data-id='{{ id }}'>
<td>{{ date }}</td>
<td>{{ name }}</td>
</tr>
<script>
document.querySelector('.adminTable tr[data-id="{{id}}"]').addEventListener(touchEvent, (e) => {
const path = e.path || (e.composedPath && e.composedPath());
const test = path[1];
window.location.href = `/admin/test/${test.getAttribute('data-id')}`;
});
</script>