Rebuild assets

This commit is contained in:
2023-06-22 20:51:21 +10:00
parent e24ffbbe4d
commit 5b8c28f882
4 changed files with 8 additions and 5 deletions

View File

@@ -14,13 +14,16 @@
"class_name": "grid gap-4 grid-cols-2 prose-img:m-0"
});
htmx.on('#media_form', 'htmx:xhr:progress', function(evt) {
htmx.find('#progress').setAttribute('value', evt.detail.loaded/evt.detail.total * 100)
});
const mediaForm = document.getElementById("media_form");
if (mediaForm !== null) {
htmx.on('#media_form', 'htmx:xhr:progress', function (evt) {
htmx.find('#progress').setAttribute('value', evt.detail.loaded / evt.detail.total * 100)
});
}
});
const mapContainer = document.getElementById("map");
if (mapContainer !== undefined) {
if (mapContainer !== null) {
document.getElementById("go-back").addEventListener("click", () => {
history.back();
});