mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
Fix condition when there isn't any contact associated with phone number
This commit is contained in:
parent
b974a946b0
commit
e7e79b592e
@ -86,7 +86,7 @@ function fetchConversation(phoneNumber) {
|
|||||||
|
|
||||||
conversationBuf = formatConversation(jsondata)[1];
|
conversationBuf = formatConversation(jsondata)[1];
|
||||||
conversationBuf += '<div class="msg-endtag"></div>';
|
conversationBuf += '<div class="msg-endtag"></div>';
|
||||||
if (typeof jsondata['contactName'] == 'undefined') {
|
if (typeof jsondata['contactName'] == 'undefined' || jsondata['contactName'] == '') {
|
||||||
$('#ocsms-phone-label').html(phoneNumberLabel);
|
$('#ocsms-phone-label').html(phoneNumberLabel);
|
||||||
curContactName = phoneNumberLabel;
|
curContactName = phoneNumberLabel;
|
||||||
$('#ocsms-phone-opt-number').html('');
|
$('#ocsms-phone-opt-number').html('');
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<div id="app-content-header" style="display: none;">
|
<div id="app-content-header" style="display: none;">
|
||||||
<div id="ocsms-phone-label"></div>
|
<div id="ocsms-phone-label"></div>
|
||||||
<div id="ocsms-phone-opt-number"></div>
|
<div id="ocsms-phone-opt-number"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="app-content-wrapper">
|
<div id="app-content-wrapper">
|
||||||
<div id="ocsms-empty-conversation">Please choose a conversation on the left menu</div>
|
<div id="ocsms-empty-conversation">Please choose a conversation on the left menu</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user