Fix some JS issues
This commit is contained in:
@@ -14,13 +14,16 @@
|
|||||||
"class_name": "grid gap-4 grid-cols-2 prose-img:m-0"
|
"class_name": "grid gap-4 grid-cols-2 prose-img:m-0"
|
||||||
});
|
});
|
||||||
|
|
||||||
htmx.on('#media_form', 'htmx:xhr:progress', function(evt) {
|
const mediaForm = document.getElementById("media_form");
|
||||||
htmx.find('#progress').setAttribute('value', evt.detail.loaded/evt.detail.total * 100)
|
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");
|
const mapContainer = document.getElementById("map");
|
||||||
if (mapContainer !== undefined) {
|
if (mapContainer !== null) {
|
||||||
document.getElementById("go-back").addEventListener("click", () => {
|
document.getElementById("go-back").addEventListener("click", () => {
|
||||||
history.back();
|
history.back();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user