1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

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

This commit is contained in:
Sergio Betanzos 2020-05-12 14:50:58 +02:00 committed by GitHub
parent 98376cdd3b
commit 63a24d3796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = "";