From 9c57ef865d18658fbf88e3fec6b4216ee0b8c5dd Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 16 Jul 2014 15:03:09 +0000 Subject: [PATCH] If link has a target, use that. Causes linked files to be opened in new browser tab. --- etemplate/js/et2_widget_link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index e3717c2052..df59296e22 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -1599,7 +1599,7 @@ var et2_link_list = et2_link_string.extend( $j(document.createElement("td")) .appendTo(row) .addClass(columns[i]) - .click( function(){self.egw().open(_link_data, "", "view",null,_link_data.app,_link_data.app);}) + .click( function(){self.egw().open(_link_data, "", "view",null,_link_data.target ? _link_data.target : _link_data.app,_link_data.app);}) .text(_link_data[columns[i]] ? _link_data[columns[i]]+"" : ""); }