if no confirm_msg given, use caption instead for select_all confirmation

This commit is contained in:
Ralf Becker 2011-06-01 11:30:08 +00:00
parent 4d2cf32f9a
commit c9fbcc329e

View File

@ -155,7 +155,7 @@ function nm_action(_action, _senders)
// let user confirm select-all
if (select_all && select_all.checked)
{
if (!confirm(confirm_msg+"\n\n"+select_all.hint)) return;
if (!confirm((confirm_msg ? confirm_msg : _action.caption)+"\n\n"+select_all.hint)) return;
}
var checkboxes = egw_actionManager.getActionsByAttr("checkbox", true);
var checkboxes_elem = document.getElementById(egw_actionManager.etemplate_var_prefix+'[nm][checkboxes]');