From: jitendrapurohit Date: Mon, 20 Oct 2014 13:10:54 +0000 (+0530) Subject: CRM-15485 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=17c6ad0f69eff17fc047d091bf59ac0c19da3c24;p=civicrm-core.git CRM-15485 --- 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}