diff --git a/public/assets/asset-manifest.json b/public/assets/asset-manifest.json index 0f7ff1b..da6182a 100644 --- a/public/assets/asset-manifest.json +++ b/public/assets/asset-manifest.json @@ -1 +1 @@ -{"gallery.js":"gallery-Wd46MBxB88Hw.js","index.js":"index-Wd46MBxB88Hw.js","index.css":"index-Wd46MBxB88Hw.css"} \ No newline at end of file +{"gallery.js":"gallery-6je-BGznzuxn.js","index.js":"index-6je-BGznzuxn.js","index.css":"index-6je-BGznzuxn.css"} \ No newline at end of file diff --git a/public/assets/dist/gallery-Wd46MBxB88Hw.js b/public/assets/dist/gallery-6je-BGznzuxn.js similarity index 100% rename from public/assets/dist/gallery-Wd46MBxB88Hw.js rename to public/assets/dist/gallery-6je-BGznzuxn.js diff --git a/public/assets/dist/index-Wd46MBxB88Hw.css b/public/assets/dist/index-6je-BGznzuxn.css similarity index 100% rename from public/assets/dist/index-Wd46MBxB88Hw.css rename to public/assets/dist/index-6je-BGznzuxn.css diff --git a/public/assets/dist/index-Wd46MBxB88Hw.js b/public/assets/dist/index-6je-BGznzuxn.js similarity index 82% rename from public/assets/dist/index-Wd46MBxB88Hw.js rename to public/assets/dist/index-6je-BGznzuxn.js index 89e1f93..538e97b 100644 --- a/public/assets/dist/index-Wd46MBxB88Hw.js +++ b/public/assets/dist/index-6je-BGznzuxn.js @@ -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(); });