hbs
This commit is contained in:
parent
4fbf65d2a0
commit
7211d1d1e9
|
@ -1,7 +1,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
hx-get="shop/totals/"
|
hx-get="shop/totals/"
|
||||||
hx-trigger="load delay:1ms"
|
hx-trigger="every 1ms"
|
||||||
hx-on::config-request="
|
hx-on::config-request="
|
||||||
event.detail.path = !(
|
event.detail.path = !(
|
||||||
new URLSearchParams(window.location.search
|
new URLSearchParams(window.location.search
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
id="order-form-rose-ash-shop"
|
id="order-form-rose-ash-shop"
|
||||||
hx-get="shop/order"
|
hx-get="shop/order"
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
hx-trigger="load delay:1s"
|
hx-trigger="every 1s"
|
||||||
hx-target="#order-form-rose-ash-shop"
|
hx-target="#order-form-rose-ash-shop"
|
||||||
hx-on::config-request="event.detail.path += window.location.search;"
|
hx-on::config-request="event.detail.path += window.location.search;"
|
||||||
hx-on::confirm="
|
hx-on::confirm="
|
||||||
|
@ -34,10 +34,10 @@
|
||||||
<div
|
<div
|
||||||
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="every 1s"
|
||||||
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="outerHTML"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue