From 476a0c0a6deb7247d04161cf75dfda5525023563 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 3 Jun 2011 18:45:40 +0000 Subject: [PATCH] remove leading whitespace from caption used as confirmation message --- etemplate/js/nextmatch_action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/nextmatch_action.js b/etemplate/js/nextmatch_action.js index 91cbd1d8b9..7ae376f872 100644 --- a/etemplate/js/nextmatch_action.js +++ b/etemplate/js/nextmatch_action.js @@ -171,7 +171,7 @@ function nm_action(_action, _senders) // let user confirm select-all if (select_all && select_all.checked) { - if (!confirm((confirm_msg ? confirm_msg : _action.caption)+"\n\n"+select_all.hint)) return; + if (!confirm((confirm_msg ? confirm_msg : _action.caption.replace(/^( | | )+/,''))+"\n\n"+select_all.hint)) return; } var checkboxes = mgr.getActionsByAttr("checkbox", true); var checkboxes_elem = document.getElementById(mgr.etemplate_var_prefix+'[nm][checkboxes]');