add _blank target for optional url

so that they open in a new tab/window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-05-08 12:18:01 +02:00 committed by Dietmar Maurer
parent 525aed1f87
commit d26eb607b4

View File

@ -724,7 +724,7 @@ Ext.define('PVE.Utils', { utilities: {
render_optional_url: function(value) {
var match;
if (value && (match = value.match(/^https?:\/\//)) !== null) {
return '<a href="' + value + '">' + value + '</a>';
return '<a target="_blank" href="' + value + '">' + value + '</a>';
}
return value;
},