Merge pull request #3109 from davecivicrm/CRM-14515
[civicrm-core.git] / templates / CRM / common / paymentBlock.tpl
index 6d75285acbbae4fe638f50276e738584fcfe3f01..8cb3c8a32b7c987bcada71a9dade6adff2c7786a 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -50,16 +50,15 @@ function buildPaymentBlock( type ) {
     {/if}
   {literal}
 
-  var fname = '#billing-payment-block';
   var response = cj.ajax({
                         url: dataUrl,
                         async: false
                         }).responseText;
 
-    cj( fname ).html( response );
+  cj('#billing-payment-block').html(response).trigger('crmLoad').trigger('crmFormLoad');
 }
 
-cj( function() {
+CRM.$(function($) {
     cj('.crm-group.payment_options-group').show();
 
     cj('input[name="payment_processor"]').change( function() {