CRM-15037
authorRohan Katkar <rohan.katkar@webaccess.co.in>
Tue, 29 Jul 2014 06:11:16 +0000 (11:41 +0530)
committerRohan Katkar <rohan.katkar@webaccess.co.in>
Tue, 29 Jul 2014 06:11:16 +0000 (11:41 +0530)
templates/CRM/Contribute/Form/Contribution.tpl
templates/CRM/Event/Form/EventFees.tpl

index fbcba784b31ad00cedd61705d38617c782ca5221..151b154bf6be0250eee66f0a35c0a11cb4731ce9 100644 (file)
     {if $context eq 'standalone' and $outBound_option != 2 }
       {literal}
       CRM.$(function($) {
-        cj("#contact_1").blur( function( ) {
+        cj("#contact_id").change( function( ) {
           checkEmail( );
         });
         checkEmail( );
       });
 
       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},
index bb272a025534103910b6bd9d42192d5cffac7fb3..2c1e44ec7056346ed8750ce8a33e7cbbc4d7a184 100644 (file)
 <script type="text/javascript">
 {literal}
 CRM.$(function($) {
-    cj("#contact_1").blur( function( ) {
+    cj("#contact_id").change( function( ) {
         checkEmail( );
     } );
     checkEmail( );
 });
 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},