From b337af1b7cf8cdd0c4f57beae023e3da79b182ce Mon Sep 17 00:00:00 2001 From: Aqeeb Imtiaz Harun Date: Sat, 7 Jul 2018 17:30:55 +0800 Subject: [PATCH] The current user settings for the contact page has been attempted to be fixed, still have 1 issue with listing & the sidemenu --- public/contacts.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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 + } + } });