CRM-14737 - Search js - clear row-highlight class when clearing checkboxes
authorColeman Watts <coleman@civicrm.org>
Thu, 5 Jun 2014 21:46:01 +0000 (22:46 +0100)
committerColeman Watts <coleman@civicrm.org>
Thu, 5 Jun 2014 21:46:01 +0000 (22:46 +0100)
templates/CRM/Contact/Form/Selector.tpl

index 4d5b3b3628fa94ed298e4691232a3718accda528..8ab30c60cc1e75ac7f91cfa7305c61a7231f5843 100644 (file)
   {literal}
   CRM.$(function($) {
     // Clear any old selection that may be lingering in quickform
-    $("input.select-row, input.select-rows", 'form.crm-search-form').prop('checked', false);
+    $("input.select-row, input.select-rows", 'form.crm-search-form').prop('checked', false).closest('tr').removeClass('crm-row-selected');
     // Retrieve stored checkboxes
     var cids = {/literal}{$selectedContactIds|@json_encode}{literal};
     if (cids.length > 0) {