From 2940e57b1189bd2f0c5440d39f341e237fa0e8ff Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 5 Feb 2013 12:32:57 +0000 Subject: [PATCH] no need to generate a link, if there is no content in it, instead of displaying "-missing-" --- etemplate/js/et2_core_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_core_common.js b/etemplate/js/et2_core_common.js index 72a2c55f42..6bb85d7a1a 100644 --- a/etemplate/js/et2_core_common.js +++ b/etemplate/js/et2_core_common.js @@ -545,7 +545,7 @@ function et2_insertLinkText(_text, _node, _target) } } } - else + else if(s.text) // no need to generate a link, if there is no content in it { if(!s.href) { @@ -554,7 +554,7 @@ function et2_insertLinkText(_text, _node, _target) } var a = $j(document.createElement("a")) .attr("href", s.href) - .text(s.text ? s.text : "-"+egw.lang("missing")+"-"); + .text(s.text); if (typeof _target != "undefined" && _target && _target != "_self") {