summaryrefslogtreecommitdiff
path: root/app/utils/static/image-loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils/static/image-loader.js')
-rw-r--r--app/utils/static/image-loader.js3
1 files changed, 1 insertions, 2 deletions
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);
}