-
Notifications
You must be signed in to change notification settings - Fork 37
Added AJAX support. #8
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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, |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btn.onclick = stopFollowing; | ||
btn.id = 'unfollow'; | ||
btn.innerText = 'Unfollow'; | ||
console.log('gotem'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Hi! I added AJAX support, as was asked in issue #5