1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix condition when there isn't any contact associated with phone number

This commit is contained in:
Loic Blot 2014-10-13 17:41:24 +02:00
parent b974a946b0
commit e7e79b592e
2 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,7 @@ function fetchConversation(phoneNumber) {
conversationBuf = formatConversation(jsondata)[1];
conversationBuf += '<div class="msg-endtag"></div>';
if (typeof jsondata['contactName'] == 'undefined') {
if (typeof jsondata['contactName'] == 'undefined' || jsondata['contactName'] == '') {
$('#ocsms-phone-label').html(phoneNumberLabel);
curContactName = phoneNumberLabel;
$('#ocsms-phone-opt-number').html('');

View File

@ -13,6 +13,7 @@
<div id="app-content-header" style="display: none;">
<div id="ocsms-phone-label"></div>
<div id="ocsms-phone-opt-number"></div>
</div>
<div id="app-content-wrapper">
<div id="ocsms-empty-conversation">Please choose a conversation on the left menu</div>