This commit is contained in:
giles 2024-09-24 19:15:12 +01:00
parent 4a15dca1df
commit 24a913ee94
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@
id="order-detail-rose-ash-shop" id="order-detail-rose-ash-shop"
hx-get="shop/order" hx-get="shop/order"
hx-trigger="load delay:1ms" hx-trigger="load delay:1ms"
hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('orderId') ? 'shop/order/' + new URLSearchParams(window.location.search).get('orderId')+ '/' : null; '" hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('orderId') ? 'shop/order/' + new URLSearchParams(window.location.search).get('orderId')+ '/' : null; "
hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('orderId')) { event.preventDefault(); }" hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('orderId')) { event.preventDefault(); }"
hx-swap="innerHTML" hx-swap="innerHTML"
> >