From f8ed76a7aabbf8fd9f0573966e8b09902251f32c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 11 Nov 2020 23:28:35 -0500 Subject: testing more tweaks to js --- app/products/static/product-loader.js | 2 +- app/utils/static/image-loader.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'app') 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 = ''; + var 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.id = "images_id"; + var iframe=''; el.insertAdjacentHTML('afterend', iframe); } -- cgit v1.2.3-70-g09d2