From ec56327c203dfefacf47cd3dfaf80a385ea70864 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 6 Jun 2011 20:22:49 +0000 Subject: [PATCH] If action specifies target for location, use it --- etemplate/js/nextmatch_action.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etemplate/js/nextmatch_action.js b/etemplate/js/nextmatch_action.js index 7ae376f872..22a83c08dd 100644 --- a/etemplate/js/nextmatch_action.js +++ b/etemplate/js/nextmatch_action.js @@ -144,7 +144,14 @@ function nm_action(_action, _senders) break; case 'location': - window.location.href = url; + if(target) + { + window.open(url, target); + } + else + { + window.location.href = url; + } break; case 'popup':