projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4063 from colemanw/buttonFixes
[civicrm-core.git]
/
templates
/
CRM
/
Core
/
BillingBlock.tpl
diff --git
a/templates/CRM/Core/BillingBlock.tpl
b/templates/CRM/Core/BillingBlock.tpl
index d3d2f91d009408ac5dba4fb825325e0bcbb7ed8b..53cab5ec941c0157525700c0730c2f53855d8a58 100644
(file)
--- a/
templates/CRM/Core/BillingBlock.tpl
+++ b/
templates/CRM/Core/BillingBlock.tpl
@@
-226,7
+226,9
@@
CRM.$(function($) {
}
if(checked) {
$('#billingcheckbox').prop('checked', true);
}
if(checked) {
$('#billingcheckbox').prop('checked', true);
- $('.billing_name_address-group').hide();
+ if (CRM.billing.billingProfileIsHideable) {
+ $('.billing_name_address-group').hide();
+ }
}
// onchange handlers for non-billing fields
}
// onchange handlers for non-billing fields
@@
-264,7
+266,9
@@
CRM.$(function($) {
// toggle show/hide
$('#billingcheckbox').click(function(){
if(this.checked) {
// toggle show/hide
$('#billingcheckbox').click(function(){
if(this.checked) {
- $('.billing_name_address-group').hide(200);
+ if (CRM.billing.billingProfileIsHideable) {
+ $('.billing_name_address-group').hide(200);
+ }
// copy all values
for(var id in input_ids) {
// copy all values
for(var id in input_ids) {