This commit is contained in:
giles 2024-10-13 15:11:03 +01:00
parent b18849a2c2
commit aded426ca5
2 changed files with 2 additions and 6 deletions

View File

@ -42,14 +42,10 @@
<script> <script>
window.addEventListener('htmx:sendError', (e)=>{ window.addEventListener('htmx:sendError', (e)=>{
console.log('i got a send error!') $('.modal').modal('hide');
$('.modal').modal('hide');
$('body').removeClass('modal-open'); $('body').removeClass('modal-open');
$('.modal-backdrop').remove(); $('.modal-backdrop').remove();
$('.modal .modal-content').remove(); $('.modal .modal-content').remove();
console.log('got here too')
}); });
</script> </script>

View File

@ -3,7 +3,7 @@
<div <div
hx-get="shop/?" hx-get="shop/?"
hx-trigger="load delay:1ms" hx-trigger="load delay:1ms"
hx-headers='{ "rose-ash-shop": "true", "rose-ash-shop-layout": "component" }' hx-headers='{ "rose-ash-shop": "true", "rose-ash-shop-layout-top": "post" }'
hx-on::config-request = " hx-on::config-request = "
//e vent.detail.path += window.location.search //e vent.detail.path += window.location.search
const param = new URLSearchParams(window. location.search) const param = new URLSearchParams(window. location.search)