[pve-devel] [PATCH manager] add _blank target for optional url
Dominik Csapak
d.csapak at proxmox.com
Tue May 8 12:18:01 CEST 2018
so that they open in a new tab/window
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/Utils.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index 5a8f7427..ad5a0a61 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -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;
},
--
2.11.0
More information about the pve-devel
mailing list