{"action":"created","comment":{"url":"https://api.github.com/repos/andela/pibbble/pulls/comments/50511745","id":50511745,"diff_hunk":"@@ -20,6 +20,87 @@ jQuery( document ).ready(function( $ ){\n             });\n         });\n         $('.comment-btn').on('click', makeComment);\n+\n+        $('#followsLink, #followersLink').click(function(e) {\n+            e.preventDefault();\n+            var url = $(this).attr('data-url');\n+            var title = /follows/.test(url) ? 'Following' : 'Followers';\n+\n+            $.getJSON(url, function(data) {\n+                if (data.length == 0)\n+                    return;\n+\n+                $('#ajaxModal').on('show.bs.modal', function(event) {","path":"public/js/app.js","position":14,"original_position":14,"commit_id":"69beb36981be9524211dea7ae19fc410df60d0e1","original_commit_id":"69beb36981be9524211dea7ae19fc410df60d0e1","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'event' is defined but never used.","created_at":"2016-01-22T08:32:16Z","updated_at":"2016-01-22T08:32:16Z","html_url":"https://github.com/andela/pibbble/pull/289#discussion_r50511745","pull_request_url":"https://api.github.com/repos/andela/pibbble/pulls/289","_links":{"self":{"href":"https://api.github.com/repos/andela/pibbble/pulls/comments/50511745"},"html":{"href":"https://github.com/andela/pibbble/pull/289#discussion_r50511745"},"pull_request":{"href":"https://api.github.com/repos/andela/pibbble/pulls/289"}}},"pull_request":{"url":"https://api.github.com/repos/andela/pibbble/pulls/289","id":56457163,"html_url":"https://github.com/andela/pibbble/pull/289","diff_url":"https://github.com/andela/pibbble/pull/289.diff","patch_url":"https://github.com/andela/pibbble/pull/289.patch","issue_url":"https://api.github.com/repos/andela/pibbble/issues/289","number":289,"state":"open","locked":false,"title":"[Feature #111395680] Following & Unfollowing users","user":{"login":"andela-cganga","id":3910877,"avatar_url":"https://avatars.githubusercontent.com/u/3910877?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cganga","html_url":"https://github.com/andela-cganga","followers_url":"https://api.github.com/users/andela-cganga/followers","following_url":"https://api.github.com/users/andela-cganga/following{/other_user}","gists_url":"https://api.github.com/users/andela-cganga/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cganga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cganga/subscriptions","organizations_url":"https://api.github.com/users/andela-cganga/orgs","repos_url":"https://api.github.com/users/andela-cganga/repos","events_url":"https://api.github.com/users/andela-cganga/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cganga/received_events","type":"User","site_admin":false},"body":"@unicodeveloper there are a few issues with this. Everything works fine but I think I have to load the follow/unfollow modals with an ajax request. Currently the modals are being populated with the page load of /{username} or /dashboard, and so, if I unfollow someone from the modal, I have to do a page refresh to see the changes. \r\n\r\nI want to now refactor it to load the modals from ajax calls, which get the followers and populates the modal instead, without a refresh.\r\n\r\nPlease advice on any better approach.","created_at":"2016-01-19T12:06:03Z","updated_at":"2016-01-22T08:32:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"384b5f4caefeb70855ba3aefd0cf15c67097642e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/pibbble/pulls/289/commits","review_comments_url":"https://api.github.com/repos/andela/pibbble/pulls/289/comments","review_comment_url":"https://api.github.com/repos/andela/pibbble/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/pibbble/issues/289/comments","statuses_url":"https://api.github.com/repos/andela/pibbble/statuses/69beb36981be9524211dea7ae19fc410df60d0e1","head":{"label":"andela:feature/following","ref":"feature/following","sha":"69beb36981be9524211dea7ae19fc410df60d0e1","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":40531533,"name":"pibbble","full_name":"andela/pibbble","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/pibbble","description":"Dribbble Clone for  Programmers ","fork":false,"url":"https://api.github.com/repos/andela/pibbble","forks_url":"https://api.github.com/repos/andela/pibbble/forks","keys_url":"https://api.github.com/repos/andela/pibbble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/pibbble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/pibbble/teams","hooks_url":"https://api.github.com/repos/andela/pibbble/hooks","issue_events_url":"https://api.github.com/repos/andela/pibbble/issues/events{/number}","events_url":"https://api.github.com/repos/andela/pibbble/events","assignees_url":"https://api.github.com/repos/andela/pibbble/assignees{/user}","branches_url":"https://api.github.com/repos/andela/pibbble/branches{/branch}","tags_url":"https://api.github.com/repos/andela/pibbble/tags","blobs_url":"https://api.github.com/repos/andela/pibbble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/pibbble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/pibbble/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/pibbble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/pibbble/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/pibbble/languages","stargazers_url":"https://api.github.com/repos/andela/pibbble/stargazers","contributors_url":"https://api.github.com/repos/andela/pibbble/contributors","subscribers_url":"https://api.github.com/repos/andela/pibbble/subscribers","subscription_url":"https://api.github.com/repos/andela/pibbble/subscription","commits_url":"https://api.github.com/repos/andela/pibbble/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/pibbble/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/pibbble/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/pibbble/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/pibbble/contents/{+path}","compare_url":"https://api.github.com/repos/andela/pibbble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/pibbble/merges","archive_url":"https://api.github.com/repos/andela/pibbble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/pibbble/downloads","issues_url":"https://api.github.com/repos/andela/pibbble/issues{/number}","pulls_url":"https://api.github.com/repos/andela/pibbble/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/pibbble/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/pibbble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/pibbble/labels{/name}","releases_url":"https://api.github.com/repos/andela/pibbble/releases{/id}","deployments_url":"https://api.github.com/repos/andela/pibbble/deployments","created_at":"2015-08-11T08:50:33Z","updated_at":"2016-01-11T12:12:37Z","pushed_at":"2016-01-22T08:31:53Z","git_url":"git://github.com/andela/pibbble.git","ssh_url":"git@github.com:andela/pibbble.git","clone_url":"https://github.com/andela/pibbble.git","svn_url":"https://github.com/andela/pibbble","homepage":"https://pibbble-staging.herokuapp.com/","size":9067,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":5,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"de33df83ce27016505382b4b8a58d0f7f7f53946","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":40531533,"name":"pibbble","full_name":"andela/pibbble","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/pibbble","description":"Dribbble Clone for  Programmers ","fork":false,"url":"https://api.github.com/repos/andela/pibbble","forks_url":"https://api.github.com/repos/andela/pibbble/forks","keys_url":"https://api.github.com/repos/andela/pibbble/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/pibbble/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/pibbble/teams","hooks_url":"https://api.github.com/repos/andela/pibbble/hooks","issue_events_url":"https://api.github.com/repos/andela/pibbble/issues/events{/number}","events_url":"https://api.github.com/repos/andela/pibbble/events","assignees_url":"https://api.github.com/repos/andela/pibbble/assignees{/user}","branches_url":"https://api.github.com/repos/andela/pibbble/branches{/branch}","tags_url":"https://api.github.com/repos/andela/pibbble/tags","blobs_url":"https://api.github.com/repos/andela/pibbble/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/pibbble/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/pibbble/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/pibbble/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/pibbble/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/pibbble/languages","stargazers_url":"https://api.github.com/repos/andela/pibbble/stargazers","contributors_url":"https://api.github.com/repos/andela/pibbble/contributors","subscribers_url":"https://api.github.com/repos/andela/pibbble/subscribers","subscription_url":"https://api.github.com/repos/andela/pibbble/subscription","commits_url":"https://api.github.com/repos/andela/pibbble/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/pibbble/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/pibbble/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/pibbble/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/pibbble/contents/{+path}","compare_url":"https://api.github.com/repos/andela/pibbble/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/pibbble/merges","archive_url":"https://api.github.com/repos/andela/pibbble/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/pibbble/downloads","issues_url":"https://api.github.com/repos/andela/pibbble/issues{/number}","pulls_url":"https://api.github.com/repos/andela/pibbble/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/pibbble/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/pibbble/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/pibbble/labels{/name}","releases_url":"https://api.github.com/repos/andela/pibbble/releases{/id}","deployments_url":"https://api.github.com/repos/andela/pibbble/deployments","created_at":"2015-08-11T08:50:33Z","updated_at":"2016-01-11T12:12:37Z","pushed_at":"2016-01-22T08:31:53Z","git_url":"git://github.com/andela/pibbble.git","ssh_url":"git@github.com:andela/pibbble.git","clone_url":"https://github.com/andela/pibbble.git","svn_url":"https://github.com/andela/pibbble","homepage":"https://pibbble-staging.herokuapp.com/","size":9067,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":5,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/pibbble/pulls/289"},"html":{"href":"https://github.com/andela/pibbble/pull/289"},"issue":{"href":"https://api.github.com/repos/andela/pibbble/issues/289"},"comments":{"href":"https://api.github.com/repos/andela/pibbble/issues/289/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/pibbble/pulls/289/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/pibbble/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/pibbble/pulls/289/commits"},"statuses":{"href":"https://api.github.com/repos/andela/pibbble/statuses/69beb36981be9524211dea7ae19fc410df60d0e1"}}}}