Skip to content

fixing ajax ambiguous likes_count#3

Open
piyusharma95 wants to merge 1 commit intocodingforentrepreneurs:masterfrom
piyusharma95:master
Open

fixing ajax ambiguous likes_count#3
piyusharma95 wants to merge 1 commit intocodingforentrepreneurs:masterfrom
piyusharma95:master

Conversation

@piyusharma95
Copy link
Copy Markdown

The onClick function on like button was not updating the 'data-likes' attribute, thus, the var 'likeCount' always remained constant. Hence, the updating of likes_count has been added.

The onClick function on like button was not updating the 'data-likes' attribute, thus, the var 'likeCount' always remained constant. Hence, the updating of likes_count has been added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant