From 7b71aeed08ea039edabe4061a37edb2c6bf2a662 Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 26 Apr 2018 17:51:34 +0200 Subject: [PATCH] Upgraded weblink rendering --- assets/js/components/posts/ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/components/posts/ui.js b/assets/js/components/posts/ui.js index f02fa838..0ede8329 100644 --- a/assets/js/components/posts/ui.js +++ b/assets/js/components/posts/ui.js @@ -374,7 +374,7 @@ ComunicWeb.components.posts.ui = { var link_img = createElem2({ appendTo: linkContainer, type: "img", - src: (infos.link_image != "default" ? infos.link_image : ComunicWeb.__config.assetsURL + "img/world.png"), + src: (infos.link_image != null ? infos.link_image : ComunicWeb.__config.assetsURL + "img/world.png"), class: "attachment-img", }); @@ -383,7 +383,7 @@ ComunicWeb.components.posts.ui = { appendTo: linkContainer, type: "h4", class: "attachment-heading", - innerHTML: (infos.link_title != "default" ? infos.link_title : "Web page") + innerHTML: (infos.link_title != null ? infos.link_title : "Web page") }); @@ -403,7 +403,7 @@ ComunicWeb.components.posts.ui = { link_a_url.target = "_blank"; //Add description (if any) - if(infos.link_description != "default"){ + if(infos.link_description != null){ var link_description = createElem2({ appendTo: link_attachment_text, type: "p",