From 8c74ba7383e36f435fa0359bb806b4fdf71122f3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 15 Oct 2012 18:40:11 +0000 Subject: [PATCH] Use jQuery to decode all entities in caption for confirm prompt --- etemplate/js/nextmatch_action.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/nextmatch_action.js b/etemplate/js/nextmatch_action.js index e5d257e20e..64eeebe768 100644 --- a/etemplate/js/nextmatch_action.js +++ b/etemplate/js/nextmatch_action.js @@ -204,7 +204,8 @@ function nm_action(_action, _senders) // let user confirm select-all if (select_all && select_all.checked) { - if (!confirm((confirm_msg ? confirm_msg : _action.caption.replace(/^( | | )+/,''))+"\n\n"+select_all.hint)) return; + // Use jQuery to decode all entities + if (!confirm((confirm_msg ? confirm_msg : jQuery('').html(_action.caption).text())+"\n\n"+select_all.hint)) return; } var checkboxes = mgr.getActionsByAttr("checkbox", true); var checkboxes_elem = document.getElementById(mgr.etemplate_var_prefix+'[nm][checkboxes]');