mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 11:46:44 +00:00
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:
parent
eee12d9325
commit
cdd9b6c0a7
@ -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;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user