hbs
This commit is contained in:
parent
73a3db7b0c
commit
9ac17c5cb1
|
@ -18,15 +18,18 @@
|
||||||
<div
|
<div
|
||||||
id="order-form-rose-ash-shop"
|
id="order-form-rose-ash-shop"
|
||||||
hx-get="order"
|
hx-get="order"
|
||||||
hx-trigger="load delay:1ms"
|
|
||||||
hx-on::config-request = "
|
|
||||||
event.detail.path = !(
|
|
||||||
new URLSearchParams(window.location.search
|
|
||||||
).get('order'))
|
|
||||||
? 'shop/order/'
|
|
||||||
: 'shop/order/?orderId=' + new URLSearchParams(window.location.search).get('order');
|
|
||||||
";
|
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
|
|
||||||
|
hx-trigger="load delay:1ms"
|
||||||
|
hx-target="#order-form-rose-ash-shop"
|
||||||
|
hx-on::config-request="event.detail.path += window.location.search;"
|
||||||
|
hx-on::confirm="
|
||||||
|
console.log(window.location.search)
|
||||||
|
console.log('checking...')
|
||||||
|
if (new URLSearchParams(window.location.search).get('show') !== 'buy') {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<div class="spinner-border" role="status">
|
<div class="spinner-border" role="status">
|
||||||
<span class="sr-only">Loading...</span>
|
<span class="sr-only">Loading...</span>
|
||||||
|
@ -42,20 +45,4 @@
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
|
||||||
hx-get="shop/order/"
|
|
||||||
hx-trigger="load delay:1ms"
|
|
||||||
hx-target="#order-form-rose-ash-shop"
|
|
||||||
hx-swap="outerHTML"
|
|
||||||
hx-on::config-request="event.detail.path += window.location.search;"
|
|
||||||
hx-on::confirm="
|
|
||||||
console.log(window.location.search)
|
|
||||||
console.log('checking...')
|
|
||||||
if (new URLSearchParams(window.location.search).get('show') !== 'buy') {
|
|
||||||
event.preventDefault();
|
|
||||||
}
|
|
||||||
"
|
|
||||||
|
|
||||||
hx-swap="outerHTML"
|
|
||||||
></div>
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue