From 17c6ad0f69eff17fc047d091bf59ac0c19da3c24 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 20 Oct 2014 18:40:54 +0530 Subject: [PATCH] CRM-15485 --- templates/CRM/Report/Form/Actions.tpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Report/Form/Actions.tpl b/templates/CRM/Report/Form/Actions.tpl index 0cba19d649..7a8a89a9b5 100644 --- a/templates/CRM/Report/Form/Actions.tpl +++ b/templates/CRM/Report/Form/Actions.tpl @@ -66,10 +66,14 @@ CRM.confirm({ message: ts({/literal}'{ts escape='js' 1='%1'}Add all contacts to %1 group?{/ts}'{literal}, {1: $('option:selected', '#groups').text()}) }) - .on('crmConfirm:yes', function() { - $('#groups').siblings(':submit').click(); + .on({ + 'crmConfirm:yes': function() { + $('#groups').siblings(':submit').click(); + }, + 'crmConfirm:no dialogclose': function() { + $('#groups').select2('val', ''); + } }); - $('#groups').select2('val', ''); }); })(CRM.$); {/literal} -- 2.25.1