diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index 45130dd048fd07b7447f862d87896737cd8e0d23..b66dd6949d5dbdee87c88f54edb3c0e1c75d5e33 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -253,6 +253,7 @@ Contacts={ return false; }, loadContact:function(jsondata){ + $('#contact_communication').hide(); this.data = jsondata; this.id = this.data.id; console.log('loaded: ' + this.data.FN[0]['value']); @@ -660,6 +661,7 @@ Contacts={ } if($('#addressdisplay dl').length > 1) { $('#addresses').show(); + $('#contact_communication').show(); } Contacts.UI.loadListHandlers(); return false; @@ -858,6 +860,7 @@ Contacts={ } if($('#emaillist li').length > 1) { $('#emails').show(); + $('#contact_communication').show(); } $('#emaillist li:last-child').find('input[type="text"]').focus(); @@ -919,6 +922,7 @@ Contacts={ } if($('#phonelist li').length > 1) { $('#phones').show(); + $('#contact_communication').show(); } return false; }, diff --git a/apps/contacts/templates/part.contact.php b/apps/contacts/templates/part.contact.php index 1c7b7b9067aec904559efa52a37f64a343ca0fe5..8a4faf720deb9b7a9b6f594c1193c2e278bbe275 100644 --- a/apps/contacts/templates/part.contact.php +++ b/apps/contacts/templates/part.contact.php @@ -77,7 +77,7 @@ $card['ADR'] = (array_key_exists('ADR',$_['details'])) ? $_['details']['ADR'] : </div> <!-- div class="delimiter"></div --> - <form id="contact_communication" method="post"> + <form id="contact_communication" method="post" style="display: none;"> <div class="contactsection"> <!-- email addresses --> <div id="emails" <?php echo (count($card['EMAIL'])>0?'':'style="display:none;"'); ?>>