From 0d5c3a523147ff9995d77f57320467ee17951359 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 2 May 2012 19:37:24 +0000 Subject: [PATCH] Use div_id, if provided, to close popup --- etemplate/js/et2_extension_nextmatch_actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_extension_nextmatch_actions.js b/etemplate/js/et2_extension_nextmatch_actions.js index 2f834d48c1..3f5452157a 100644 --- a/etemplate/js/et2_extension_nextmatch_actions.js +++ b/etemplate/js/et2_extension_nextmatch_actions.js @@ -327,7 +327,7 @@ function nm_submit_popup(button) function nm_hide_popup(element, div_id) { var prefix = element.id.substring(0,element.id.indexOf('[')); - var popup = jQuery("#"+prefix+"_popup").get(0) || jQuery("[id*='" + prefix + "_popup']").get(0); + var popup = div_id ? document.getElementById(div_id) : jQuery("#"+prefix+"_popup").get(0) || jQuery("[id*='" + prefix + "_popup']").get(0); // Hide popup if(popup) {