From 22668f078d1d6ef9a3f0987393307b39859934a7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 24 Nov 2011 19:07:32 +0000 Subject: [PATCH] Use js link registry to open links, allows more accurate target (popup, tab, _blank) --- etemplate/inc/class.link_widget.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etemplate/inc/class.link_widget.inc.php b/etemplate/inc/class.link_widget.inc.php index 4dcbd2e133..a917b2bd5e 100644 --- a/etemplate/inc/class.link_widget.inc.php +++ b/etemplate/inc/class.link_widget.inc.php @@ -324,6 +324,9 @@ class link_widget $value[$row]['icon'] = egw_link::get_registry($value[$row]['app'], 'icon'); $value[$row]['label'] = 'Unlink'; $value[$row]['help'] = lang('Remove this link (not the entry itself)'); + + $value[$row]['view'] = "javascript:egw.open('{$link['id']}', '{$link['app']}', 'view');"; + unset($value[$row]['target']); } } break;