summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-11-11 23:28:35 -0500
committerluxagraf <sng@luxagraf.net>2020-11-11 23:28:35 -0500
commitf8ed76a7aabbf8fd9f0573966e8b09902251f32c (patch)
tree0f9c7c647134d07fb623381d1a570abd19bb29fa /app
parent44dd031872e6eb5b80d154a78b0b3a15f07abbe7 (diff)
testing more tweaks to js
Diffstat (limited to 'app')
-rw-r--r--app/products/static/product-loader.js2
-rw-r--r--app/utils/static/image-loader.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/app/products/static/product-loader.js b/app/products/static/product-loader.js
index 9d98fc4..8c1f7b4 100644
--- a/app/products/static/product-loader.js
+++ b/app/products/static/product-loader.js
@@ -1,7 +1,7 @@
function add_products(){
var el = document.getElementById("id_body_markdown");
if (el){
- var iframe = '<iframe frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luxproduct/insert/?textarea='+el.id+'"></iframe>';
+ var iframe='<iframe frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luxproduct/insert/?textarea='+el.id+'"></iframe>';
el.insertAdjacentHTML('afterend', iframe);
}
}
diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js
index a4e75c2..2744251 100644
--- a/app/utils/static/image-loader.js
+++ b/app/utils/static/image-loader.js
@@ -1,8 +1,7 @@
function add_images(){
var el = document.getElementById("id_body_markdown");
if (el){
- var iframe = '<iframe frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luximages/insert/?textarea='+el.id+'"></iframe>';
- iframe.id = "images_id";
+ var iframe='<iframe id="images_frame" frameborder="0" style="border: #dddddd 1px solid;margin-left: 20px;width:330px; height:720px;" src="/luximages/insert/?textarea='+el.id+'"></iframe>';
el.insertAdjacentHTML('afterend', iframe);
}