-
Notifications
You must be signed in to change notification settings - Fork 0
AJAX Usage
When viewing another author's page, a button will be displayed in the top right corner that allows the user to perform a follow/friend action.
When the button is clicked, an ajax request is sent to update the relationship state. Upon success, the button will be updated to display the appropriate action (unfollow, unfriend, follow, or accept friend request) for the new state.
Ajax requests are sent in a manner similar to the profile page.
Manage Friends: Upon page load, all friends as displayed with an Unfriend button. When the Unfriend button is selected, the author is unfriended and the button is updated to Accept Friend Request.


