Merge pull request #2291 from colemanw/resources
[civicrm-core.git] / templates / CRM / Contact / Form / ShareAddress.tpl
index 4365db6a2e81f9cb264ca3743fd18dbd324ca17b..248fd871edb773127ba64392f6a25f87880dbff4 100644 (file)
@@ -52,7 +52,7 @@
 <script type="text/javascript">
   function showHideSharedAddress( blockNo, showSelect ) {
     // based on checkbox, show or hide
-    if ( cj( '#address\\[' + blockNo + '\\]\\[use_shared_address\\]' ).attr( 'checked') ) {
+    if ( cj( '#address\\[' + blockNo + '\\]\\[use_shared_address\\]' ).prop('checked') ) {
       if ( showSelect && cj( '#shared-address-display-' + blockNo ).length == 0 ) {
         cj( '#shared-address-' + blockNo ).show( );
       }