Make flip action also flip contact type icons
authordeepak-srivastava <deepak.srivastava.0303@gmail.com>
Tue, 25 Aug 2015 14:01:27 +0000 (15:01 +0100)
committerdeepak-srivastava <deepak.srivastava.0303@gmail.com>
Tue, 25 Aug 2015 14:01:27 +0000 (15:01 +0100)
templates/CRM/Contact/Page/DedupeFind.tpl

index daea1b89d9e83734ad3d328f50e0db208ffbcd09..2a7d2d0ca27e726fe445f213927fef3c91f4cc88 100644 (file)
         var postUrl = {/literal}"{crmURL p='civicrm/ajax/flipDupePairs' h=0 q='snippet=4'}"{literal};
         var request = $.post(postUrl, {pnid : $el.data('pnid')});
         request.done(function(dt) {
-          var mapper = {2:4, 5:6, 7:8, 9:10}
+          var mapper = {1:3, 2:4, 5:6, 7:8, 9:10}
           var idx = table.row($elTr).index();
           $.each(mapper, function(key, val) {
             var v1  = table.cell(idx, key).data();
         if (ids.length > 0) {
           var dataUrl = {/literal}"{crmURL p='civicrm/ajax/flipDupePairs' h=0 q='snippet=4'}"{literal};
           CRM.$.post(dataUrl, {pnid: ids}, function (response) {
-            var mapper = {2:4, 5:6, 7:8, 9:10}
+            var mapper = {1:3, 2:4, 5:6, 7:8, 9:10}
             $('.crm-row-selected').each(function() {
               var idx = table.row(this).index();
               $.each(mapper, function(key, val) {