From 666c306d455e9a425785ad4b05aa58107a7c0b8e Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 29 Jul 2014 11:41:16 +0530 Subject: [PATCH] CRM-15037 --- templates/CRM/Contribute/Form/Contribution.tpl | 4 ++-- templates/CRM/Event/Form/EventFees.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index fbcba784b3..151b154bf6 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -399,7 +399,7 @@ {if $context eq 'standalone' and $outBound_option != 2 } {literal} CRM.$(function($) { - cj("#contact_1").blur( function( ) { + cj("#contact_id").change( function( ) { checkEmail( ); }); checkEmail( ); @@ -408,7 +408,7 @@ }); function checkEmail( ) { - var contactID = cj("input[name='contact_select_id[1]']").val(); + var contactID = cj("#contact_id").val(); if (contactID) { var postUrl = "{/literal}{crmURL p='civicrm/ajax/checkemail' h=0}{literal}"; cj.post( postUrl, {contact_id: contactID}, diff --git a/templates/CRM/Event/Form/EventFees.tpl b/templates/CRM/Event/Form/EventFees.tpl index bb272a0255..2c1e44ec70 100644 --- a/templates/CRM/Event/Form/EventFees.tpl +++ b/templates/CRM/Event/Form/EventFees.tpl @@ -205,13 +205,13 @@