diff options
author | luxagraf <sng@luxagraf.net> | 2022-12-02 14:16:08 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-12-02 14:16:08 -0600 |
commit | 656505098a80e653319236ac302fd6dd9f485b33 (patch) | |
tree | 03fe2f552496e2a2b459f5227dc11273d1b94211 /app/utils/static | |
parent | bf2fa131cba6430ba93f584f4693c3444e0c455f (diff) |
reset migrations to zero out some changes (deleting the geodata for
example)
Diffstat (limited to 'app/utils/static')
-rw-r--r-- | app/utils/static/image-loader.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js index 2744251..ca96565 100644 --- a/app/utils/static/image-loader.js +++ b/app/utils/static/image-loader.js @@ -13,9 +13,9 @@ function add_images(){ var loop = Number(element.dataset.loopcounter); if (cur != "") { if (loop <= 100) { - console.log(loop); + console.log('/photos/data/admin/tn/'+cur+'/'); var request = new XMLHttpRequest(); - request.open('GET', '/photos/luximage/data/admin/tn/'+cur+'/', true); + request.open('GET', '/photos/data/admin/tn/'+cur+'/', true); request.onload = function() { if (request.status >= 200 && request.status < 400) { var data = JSON.parse(request.responseText); @@ -41,7 +41,11 @@ function add_images(){ } document.addEventListener("DOMContentLoaded", function(event) { add_images(); - md = document.forms["entry_form"].elements["body_markdown"]; + if (document.forms["post_form"]) { + md = document.forms["post_form"].elements["body_markdown"]; + } else { + md = document.forms["track_form"].elements["body_markdown"]; + } md.style.maxHeight = "300rem"; md.style.maxWidth = "300rem"; }); |