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 eee12d9325
commit cdd9b6c0a7

View File

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