[pve-devel] applied: [PATCH manager] add _blank target for optional url

Dietmar Maurer dietmar at proxmox.com
Tue May 8 13:42:00 CEST 2018


applied

> On May 8, 2018 at 12:18 PM Dominik Csapak <d.csapak at proxmox.com> wrote:
> 
> 
> 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
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list