1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 18:39:32 +00:00

Fix ios safari

This commit is contained in:
2022-04-22 03:07:54 +00:00
parent d5cdf70705
commit 62cfe7b643
9 changed files with 28 additions and 15 deletions

View File

@@ -24,8 +24,9 @@
</tr>
<script>
document.querySelector('.tests tbody tr[data-id="{{id}}"]').addEventListener('click', (e) => {
const template = e.path[1];
document.querySelector('.tests tbody tr[data-id="{{id}}"]').addEventListener(touchEvent, (e) => {
const path = e.path || (e.composedPath && e.composedPath());
const template = path[1];
window.location.href = `/admin/test-template/${template.getAttribute('data-id')}`;
});
</script>