Skip to content
Snippets Groups Projects
Commit 1eecb011 authored by mattwire's avatar mattwire
Browse files

Postcode element should always be visible but readonly

parent f58c00a9
No related branches found
No related tags found
No related merge requests found
...@@ -627,13 +627,7 @@ ...@@ -627,13 +627,7 @@
if (postCodeElement) { if (postCodeElement) {
// Hide the CiviCRM postcode field so it will still be submitted but will contain the value set in the stripe card-element. // Hide the CiviCRM postcode field so it will still be submitted but will contain the value set in the stripe card-element.
if (document.getElementById('billing_postal_code-5').value) { postCodeElement.setAttribute('readonly', true);
document.getElementById('billing_postal_code-5')
.setAttribute('readonly', true);
}
else {
document.getElementsByClassName('billing_postal_code-' + CRM.vars[script.name].billingAddressID + '-section')[0].setAttribute('hidden', true);
}
} }
// All containers start as display: none and are enabled on demand // All containers start as display: none and are enabled on demand
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment