Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Added AJAX support. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added AJAX support. #8

wants to merge 1 commit into from

Conversation

conk3r353
Copy link

Hi! I added AJAX support, as was asked in issue #5

Copy link
Owner

@SriNandan33 SriNandan33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@conk3r353 , I have requesed for few changes. Please take a look at them. Thanks!

response=json.dumps({
'error': 'User not found'
}),
status=502,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use 400 status code here instead of 502?


response = Response(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that, follow, unfollow is broken in user popup. Please hover over some user profile links to see the user popup.
userpopup

btn.onclick = stopFollowing;
btn.id = 'unfollow';
btn.innerText = 'Unfollow';
console.log('gotem');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please increase/decrease the follower count if the request is successful, modify the view functions accordingly.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also show flash messages when user follows/unfollows the other user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants