From: Coleman Watts Date: Tue, 10 Jun 2014 15:49:28 +0000 (+0100) Subject: Individual.tpl code cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=32f43226f2ec03db77cc285e04173800de80d442;p=civicrm-core.git Individual.tpl code cleanup --- diff --git a/templates/CRM/Contact/Form/Edit/Individual.tpl b/templates/CRM/Contact/Form/Edit/Individual.tpl index 3d157c9bc4..80e543ea40 100644 --- a/templates/CRM/Contact/Form/Edit/Individual.tpl +++ b/templates/CRM/Contact/Form/Edit/Individual.tpl @@ -47,27 +47,20 @@ CRM.$(function($) { sort_name: $('#last_name').val(), contact_type: 'Individual', 'return': 'display_name,sort_name,email' - }) - .done(function(data) { - if (data.is_error == 1 || data.count == 0) { - return; - } - var msg = "{/literal}{ts escape='js'}If the person you were trying to add is listed below, click their name to view or edit their record{/ts}{literal}:"; - if ( data.count == 1 ) { - var title = "{/literal}{ts escape='js'}Similar Contact Found{/ts}{literal}"; - } else { - var title = "{/literal}{ts escape='js'}Similar Contacts Found{/ts}{literal}"; - } - msg += '