From 32f43226f2ec03db77cc285e04173800de80d442 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 10 Jun 2014 16:49:28 +0100 Subject: [PATCH] Individual.tpl code cleanup --- .../CRM/Contact/Form/Edit/Individual.tpl | 29 +++++++------------ 1 file changed, 11 insertions(+), 18 deletions(-) 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 += '