Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakeesan committed Apr 13, 2021
1 parent ee8c576 commit 841af1c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions fields/civicrm_state/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@

<?php ob_start(); ?>
<script type="text/javascript">
jQuery( document ).ready( function( $ ) {

// MTL Fix Start - CIH-14 - https://github.com/mecachisenros/cf-civicrm/issues/178
//jQuery( document ).ready( function( $ ) {
( function( $ ) {
// MTL Fix End - CIH-14 - https://github.com/mecachisenros/cf-civicrm/issues/178
var countryFieldId = '<?php isset( $country_field ) ? esc_attr_e( $country_field['ID'] ) : print( 'false' ); ?>',
placeholder = '<?php echo esc_attr( $field['config']['placeholder'] ); ?>';

Expand Down Expand Up @@ -84,8 +86,10 @@
init( stateField ).val( defaultValue ).cfcSelect2();
}
} );

} );
// MTL Fix Start - CIH-14 - https://github.com/mecachisenros/cf-civicrm/issues/178
// } );
})(jQuery);
// MTL Fix End - CIH-14 - https://github.com/mecachisenros/cf-civicrm/issues/178
</script>
<?php
$script_template = ob_get_clean();
Expand Down

0 comments on commit 841af1c

Please sign in to comment.