F #4711: Allow to add link attribute as hyperlink (#4712)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2020-05-12 14:50:58 +02:00
1 parent 98376cdd3b
commit 63a24d3796
1 file changed
+5 -1
@@ -430,7 +430,11 @@ define(function(require) {
modify
);
} else {
str += '<tr><td class="key_td">' + Locale.tr(field) + '</td><td class="value_td" id="value_td_input_' + field + '">' + TemplateUtils.htmlEncode(value) + '</td>';
str += '<tr><td class="key_td">' + Locale.tr(field) + '</td><td class="value_td" id="value_td_input_' + field + '">';
str += (field.toLowerCase() === "link")
? '<a target="_blank" href="'+TemplateUtils.htmlEncode(value)+'">' + TemplateUtils.htmlEncode(value) + '</a></td>'
: TemplateUtils.htmlEncode(value) + '</td>';
if (modify) {
var edit_html = "";
var delete_html = "";