Skip to content

Commit

Permalink
Merge pull request civicrm#11 from mathavanveda/dedupe-workflow-45-tr…
Browse files Browse the repository at this point in the history
…-highlight

add class for tr to highlight selected
  • Loading branch information
deepak-srivastava committed Apr 21, 2015
2 parents 7db993a + 7aee65f commit 8a9576a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/CRM/Contact/Page/DedupeFind.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,11 @@ CRM.$(function($) {
var checked = $('.crm-dedupe-select-all').prop('checked');
if (checked) {
$("#dupePairs tbody tr input[type='checkbox']").prop('checked', true);
$("#dupePairs tbody tr").addClass('crm-row-selected');
}
else{
$("#dupePairs tbody tr input[type='checkbox']").prop('checked', false);
$("#dupePairs tbody tr").removeClass('crm-row-selected');
}
var sth = $('#dupePairs tbody tr');
toggleDedupeSelect(sth, 1);
Expand Down Expand Up @@ -291,7 +293,6 @@ function toggleDedupeSelect(element, isMultiple) {
else {
var id = [];
CRM.$(element).each(function() {
CRM.$(this).toggleClass('crm-row-selected');
var sth = CRM.$('input.crm-dedupe-select', this);
id.push(CRM.$(sth).prop('name').substr(5));
});
Expand Down

0 comments on commit 8a9576a

Please sign in to comment.