diff --git a/public/contacts.html b/public/contacts.html index cb66ab5..f9a59eb 100644 --- a/public/contacts.html +++ b/public/contacts.html @@ -170,15 +170,27 @@ //console.log(entry.company_name); if(entry.status === 0) { - if(entry.is_me === 0){ - f + if(entry.is_me === 0) //to display recieving requests + { + $('#sent-req').append(' ' + entry.sender_company_name + '
Request Pending '+ entry.sender_contact_pers + '
' + entry.sender_tel_no+ '
') } - $('#sent-req').append(' ' + entry.sender_company_name + '
Request sent '+ entry.sender_contact_pers + '
' + entry.sender_tel_no+ '
') + else //to display sent requests + { + //sent requwsts code go here + } + //$('#sent-req').append(' ' + entry.sender_company_name + '
Request sent '+ entry.sender_contact_pers + '
' + entry.sender_tel_no+ '
') } else { - $('#sent-req').append(' ' + entry.sender_company_name + '
Friend '+ entry.sender_contact_pers + '
' + entry.sender_tel_no+ '
') + if (entry.is_me === 0) //friends where the requests were sent to the current user + { + $('#sent-req').append(' ' + entry.sender_company_name + '
Friend '+ entry.sender_contact_pers + '
' + entry.sender_tel_no+ '
') + } + else{ + //friends which the current user has added should be here + } + } });