projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exclude date improvements
[civicrm-core.git]
/
templates
/
CRM
/
common
/
paymentBlock.tpl
diff --git
a/templates/CRM/common/paymentBlock.tpl
b/templates/CRM/common/paymentBlock.tpl
index 8cb3c8a32b7c987bcada71a9dade6adff2c7786a..c1a5b8b8056fde8db98ba55f4216b6c019a55093 100644
(file)
--- a/
templates/CRM/common/paymentBlock.tpl
+++ b/
templates/CRM/common/paymentBlock.tpl
@@
-27,12
+27,14
@@
<script type="text/javascript">
function buildPaymentBlock( type ) {
<script type="text/javascript">
function buildPaymentBlock( type ) {
- if ( type == 0 ) {
- if (cj("#billing-payment-block").length) {
- cj("#billing-payment-block").html('');
- }
- return;
+ {/literal}{if !$isBillingAddressRequiredForPayLater}{literal}
+ if (type == 0) {
+ if (cj("#billing-payment-block").length) {
+ cj("#billing-payment-block").html('');
}
}
+ return;
+ }
+ {/literal}{/if}{literal}
var dataUrl = {/literal}"{crmURL p=$urlPath h=0 q='snippet=4&type='}"{literal} + type;
var dataUrl = {/literal}"{crmURL p=$urlPath h=0 q='snippet=4&type='}"{literal} + type;
@@
-59,10
+61,10
@@
function buildPaymentBlock( type ) {
}
CRM.$(function($) {
}
CRM.$(function($) {
-
cj
('.crm-group.payment_options-group').show();
+
$
('.crm-group.payment_options-group').show();
-
cj
('input[name="payment_processor"]').change( function() {
- buildPaymentBlock(
cj
(this).val() );
+
$
('input[name="payment_processor"]').change( function() {
+ buildPaymentBlock(
$
(this).val() );
});
});
});
});