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