Commit 918accb1 authored by parvez's avatar parvez Committed by GitHub
Browse files

Merge pull request #19 from mattwire/fix_js_locationtypes_error

Fix js console error when locationTypes not defined
parents e004c066 043d08a0
......@@ -4,7 +4,7 @@
</style>
<script type="text/javascript">
cj(document).ready(function(){
var locationTypes = {/literal}{$civiPostCodeLookupLocationTypeJson}{literal};
var locationTypes = {/literal}{if $civiPostCodeLookupLocationTypeJson}{$civiPostCodeLookupLocationTypeJson}{else}''{/if}{literal};
var blockId = '';
var blockNo = '';
if (cj('#editrow-street_address-Primary').length > 0 ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment