CRM-14737 - Clear unwanted checkboxes after search action
authorColeman Watts <coleman@civicrm.org>
Tue, 3 Jun 2014 22:04:06 +0000 (23:04 +0100)
committerColeman Watts <coleman@civicrm.org>
Tue, 3 Jun 2014 22:04:06 +0000 (23:04 +0100)
templates/CRM/Contact/Form/Selector.tpl

index 40b11f2ea8b6518e5b15667fdfff7e87d2f483a3..40cce12d2d86922faf65be0fc98990a5e2033e3f 100644 (file)
 <script type="text/javascript">
   {literal}
   CRM.$(function($) {
+    $("input.select-row, input.select-rows", 'form.crm-search-form').prop('checked', false);
     var cids = {/literal}{$selectedContactIds|@json_encode}{literal};
     if (cids.length > 0) {
       $('#mark_x_' + cids.join(',#mark_x_')).prop('checked', true).closest('tr').addClass('crm-row-selected');