From 6f46799a6f6759dedcdb020c2f953471249fef51 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 3 Jan 2018 11:34:18 +0100 Subject: [PATCH] Improved links heading --- assets/js/components/posts/ui.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/assets/js/components/posts/ui.js b/assets/js/components/posts/ui.js index f3048c51..80793566 100644 --- a/assets/js/components/posts/ui.js +++ b/assets/js/components/posts/ui.js @@ -194,16 +194,10 @@ ComunicWeb.components.posts.ui = { var link_heading = createElem2({ appendTo: linkContainer, type: "h4", - class: "attachment-heading" - }); - - var link_a = createElem2({ - appendTo: link_heading, - type: "a", - href: infos.link_url, + class: "attachment-heading", innerHTML: (infos.link_title != "default" ? infos.link_title : "Web page") }); - link_a.target = "_blank"; + //Add attachement text var link_attachment_text = createElem2({