From 5b8c28f882c15c0540ebf33763762d580124a45a Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Thu, 22 Jun 2023 20:51:21 +1000 Subject: [PATCH] Rebuild assets --- public/assets/asset-manifest.json | 2 +- ...allery-Wd46MBxB88Hw.js => gallery-6je-BGznzuxn.js} | 0 ...{index-Wd46MBxB88Hw.css => index-6je-BGznzuxn.css} | 0 .../{index-Wd46MBxB88Hw.js => index-6je-BGznzuxn.js} | 11 +++++++---- 4 files changed, 8 insertions(+), 5 deletions(-) rename public/assets/dist/{gallery-Wd46MBxB88Hw.js => gallery-6je-BGznzuxn.js} (100%) rename public/assets/dist/{index-Wd46MBxB88Hw.css => index-6je-BGznzuxn.css} (100%) rename public/assets/dist/{index-Wd46MBxB88Hw.js => index-6je-BGznzuxn.js} (82%) 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(); });