mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-02-25 17:04:51 +01:00
16 lines
630 B
HTML
16 lines
630 B
HTML
{% load i18n %}
|
|
<script type="text/hyperscript">
|
|
behavior htmx_error_handler
|
|
on htmx:responseError or htmx:afterRequest[detail.failed] or htmx:sendError queue none
|
|
call Swal.fire({title: '{% trans 'Something went wrong loading your data' %}',
|
|
text: '{% trans 'Try reloading the page or check the console for more information.' %}',
|
|
icon: 'error',
|
|
customClass: {
|
|
confirmButton: 'btn btn-primary'
|
|
},
|
|
buttonsStyling: true})
|
|
then log event
|
|
then halt the event
|
|
end
|
|
</script>
|