mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 03:19:27 +00:00
Fix ios safari
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
</tr>
|
||||
|
||||
<script>
|
||||
document.querySelector('.adminTable tr[data-id="{{id}}"]').addEventListener('click', (e) => {
|
||||
const test = e.path[1];
|
||||
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>
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
</tr>
|
||||
|
||||
<script>
|
||||
document.querySelector('.tests tbody tr[data-id="{{id}}"]').addEventListener('click', (e) => {
|
||||
const test = e.path[1];
|
||||
document.querySelector('.tests tbody 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>
|
||||
|
||||
@@ -48,11 +48,12 @@
|
||||
|
||||
{{#if edit}}
|
||||
<script>
|
||||
document.querySelector('.testPage__testResultWrapper[data-id="{{result.id}}"] a.resultEdit').addEventListener('click', (e) => {
|
||||
document.querySelector('.testPage__testResultWrapper[data-id="{{result.id}}"] a.resultEdit').addEventListener(touchEvent, (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
const form = e.path[1].childNodes[3];
|
||||
const link = e.path[0];
|
||||
const path = e.path || (e.composedPath && e.composedPath());
|
||||
const form = path[1].childNodes[3];
|
||||
const link = path[0];
|
||||
|
||||
link.innerText =
|
||||
(form.style.display === 'none')
|
||||
|
||||
Reference in New Issue
Block a user