{"action":"created","comment":{"url":"https://api.github.com/repos/andela/suyabay/pulls/comments/55654872","id":55654872,"diff_hunk":"@@ -1,5 +1,65 @@\n $(document).ready(function() {\n \n+\n+    $(\".view_more_comments\").on(\"click\",function() {\n+\n+        var avatar = $(this).data('avatar');\n+        var numOfComments = $(\".load_comment\").find(\"div#show_comment\");\n+        var episode_id  = $(\"#episode_id\").val();\n+\n+        try {\n+\n+            $.ajax({\n+\n+            url:'/comment',\n+            type:'GET',\n+            data:{'offset': numOfComments.size(),'episode_id':episode_id},\n+\n+            success: function(data) {\n+\n+                for (i = 0 ; i < data.comments.length; i++) {\n+\n+                    var comments = data.comments[i];\n+\n+                    $('#comment-count').html(' ' + numOfComments.size());\n+\n+                     var newComment = '<div id=\"show_comment\" class=\"collection-item avatar show_comment\">';\n+                     newComment    += '<div class=\"row\">';\n+                     newComment    += '<div class=\"col s2\">';\n+                     newComment    += '<img src=\"' + avatar + '\" alt=\"\" class=\"circle\">';\n+                     newComment    += '</div>';\n+                     newComment    += '<div class=\"col s10\">';\n+                     newComment    += '<div class=\"textarea-wrapper\" ';\n+                     newComment    += 'data-comment-id=\"' + comments.id + '\">';\n+                     newComment    += '<span>' + comments.comments + '</span>';\n+                     newComment    += '<div class=\"update-actions pull-right\">';\n+                     newComment    += '<a href=\"#\" id=\"comment_action_caret\" class=\"fa fa-bars no-style-link\"></a>';","path":"public/js/comment.js","position":36,"original_position":36,"commit_id":"859f4cd138f837c835428518ed0d7126fa0aa2be","original_commit_id":"859f4cd138f837c835428518ed0d7126fa0aa2be","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long.<br>Mixed double and single quotes.","created_at":"2016-03-10T09:43:51Z","updated_at":"2016-03-10T09:43:51Z","html_url":"https://github.com/andela/suyabay/pull/201#discussion_r55654872","pull_request_url":"https://api.github.com/repos/andela/suyabay/pulls/201","_links":{"self":{"href":"https://api.github.com/repos/andela/suyabay/pulls/comments/55654872"},"html":{"href":"https://github.com/andela/suyabay/pull/201#discussion_r55654872"},"pull_request":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201"}}},"pull_request":{"url":"https://api.github.com/repos/andela/suyabay/pulls/201","id":62362713,"html_url":"https://github.com/andela/suyabay/pull/201","diff_url":"https://github.com/andela/suyabay/pull/201.diff","patch_url":"https://github.com/andela/suyabay/pull/201.patch","issue_url":"https://api.github.com/repos/andela/suyabay/issues/201","number":201,"state":"open","locked":false,"title":"Chore/new favourite layout","user":{"login":"andela-tolotin","id":14159435,"avatar_url":"https://avatars.githubusercontent.com/u/14159435?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tolotin","html_url":"https://github.com/andela-tolotin","followers_url":"https://api.github.com/users/andela-tolotin/followers","following_url":"https://api.github.com/users/andela-tolotin/following{/other_user}","gists_url":"https://api.github.com/users/andela-tolotin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tolotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tolotin/subscriptions","organizations_url":"https://api.github.com/users/andela-tolotin/orgs","repos_url":"https://api.github.com/users/andela-tolotin/repos","events_url":"https://api.github.com/users/andela-tolotin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tolotin/received_events","type":"User","site_admin":false},"body":"This pull request solves the following issues;\r\n\r\n1. The navigation sidebar on the channel page has dead links.\r\n2. The favourite page was using an old layout.\r\n3. Episodes without comments prints error messages  on the page.","created_at":"2016-03-10T09:43:38Z","updated_at":"2016-03-10T09:43:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cacff084c09c11769a2355ade371698c469aa2d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/suyabay/pulls/201/commits","review_comments_url":"https://api.github.com/repos/andela/suyabay/pulls/201/comments","review_comment_url":"https://api.github.com/repos/andela/suyabay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/suyabay/issues/201/comments","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/859f4cd138f837c835428518ed0d7126fa0aa2be","head":{"label":"andela:chore/new-favourite-layout","ref":"chore/new-favourite-layout","sha":"859f4cd138f837c835428518ed0d7126fa0aa2be","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":41855319,"name":"suyabay","full_name":"andela/suyabay","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/suyabay","description":"Awesome Podcast FM Network for Suya Lovers","fork":false,"url":"https://api.github.com/repos/andela/suyabay","forks_url":"https://api.github.com/repos/andela/suyabay/forks","keys_url":"https://api.github.com/repos/andela/suyabay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/suyabay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/suyabay/teams","hooks_url":"https://api.github.com/repos/andela/suyabay/hooks","issue_events_url":"https://api.github.com/repos/andela/suyabay/issues/events{/number}","events_url":"https://api.github.com/repos/andela/suyabay/events","assignees_url":"https://api.github.com/repos/andela/suyabay/assignees{/user}","branches_url":"https://api.github.com/repos/andela/suyabay/branches{/branch}","tags_url":"https://api.github.com/repos/andela/suyabay/tags","blobs_url":"https://api.github.com/repos/andela/suyabay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/suyabay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/suyabay/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/suyabay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/suyabay/languages","stargazers_url":"https://api.github.com/repos/andela/suyabay/stargazers","contributors_url":"https://api.github.com/repos/andela/suyabay/contributors","subscribers_url":"https://api.github.com/repos/andela/suyabay/subscribers","subscription_url":"https://api.github.com/repos/andela/suyabay/subscription","commits_url":"https://api.github.com/repos/andela/suyabay/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/suyabay/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/suyabay/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/suyabay/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/suyabay/contents/{+path}","compare_url":"https://api.github.com/repos/andela/suyabay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/suyabay/merges","archive_url":"https://api.github.com/repos/andela/suyabay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/suyabay/downloads","issues_url":"https://api.github.com/repos/andela/suyabay/issues{/number}","pulls_url":"https://api.github.com/repos/andela/suyabay/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/suyabay/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/suyabay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/suyabay/labels{/name}","releases_url":"https://api.github.com/repos/andela/suyabay/releases{/id}","deployments_url":"https://api.github.com/repos/andela/suyabay/deployments","created_at":"2015-09-03T11:00:56Z","updated_at":"2016-02-22T07:53:08Z","pushed_at":"2016-03-10T09:43:39Z","git_url":"git://github.com/andela/suyabay.git","ssh_url":"git@github.com:andela/suyabay.git","clone_url":"https://github.com/andela/suyabay.git","svn_url":"https://github.com/andela/suyabay","homepage":"https://suyabay-staging.herokuapp.com","size":33397,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":5,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"adb5417274bf0b61a35b7792ce3d61c27b8cbe67","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":41855319,"name":"suyabay","full_name":"andela/suyabay","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/suyabay","description":"Awesome Podcast FM Network for Suya Lovers","fork":false,"url":"https://api.github.com/repos/andela/suyabay","forks_url":"https://api.github.com/repos/andela/suyabay/forks","keys_url":"https://api.github.com/repos/andela/suyabay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/suyabay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/suyabay/teams","hooks_url":"https://api.github.com/repos/andela/suyabay/hooks","issue_events_url":"https://api.github.com/repos/andela/suyabay/issues/events{/number}","events_url":"https://api.github.com/repos/andela/suyabay/events","assignees_url":"https://api.github.com/repos/andela/suyabay/assignees{/user}","branches_url":"https://api.github.com/repos/andela/suyabay/branches{/branch}","tags_url":"https://api.github.com/repos/andela/suyabay/tags","blobs_url":"https://api.github.com/repos/andela/suyabay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/suyabay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/suyabay/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/suyabay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/suyabay/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/suyabay/languages","stargazers_url":"https://api.github.com/repos/andela/suyabay/stargazers","contributors_url":"https://api.github.com/repos/andela/suyabay/contributors","subscribers_url":"https://api.github.com/repos/andela/suyabay/subscribers","subscription_url":"https://api.github.com/repos/andela/suyabay/subscription","commits_url":"https://api.github.com/repos/andela/suyabay/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/suyabay/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/suyabay/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/suyabay/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/suyabay/contents/{+path}","compare_url":"https://api.github.com/repos/andela/suyabay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/suyabay/merges","archive_url":"https://api.github.com/repos/andela/suyabay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/suyabay/downloads","issues_url":"https://api.github.com/repos/andela/suyabay/issues{/number}","pulls_url":"https://api.github.com/repos/andela/suyabay/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/suyabay/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/suyabay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/suyabay/labels{/name}","releases_url":"https://api.github.com/repos/andela/suyabay/releases{/id}","deployments_url":"https://api.github.com/repos/andela/suyabay/deployments","created_at":"2015-09-03T11:00:56Z","updated_at":"2016-02-22T07:53:08Z","pushed_at":"2016-03-10T09:43:39Z","git_url":"git://github.com/andela/suyabay.git","ssh_url":"git@github.com:andela/suyabay.git","clone_url":"https://github.com/andela/suyabay.git","svn_url":"https://github.com/andela/suyabay","homepage":"https://suyabay-staging.herokuapp.com","size":33397,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":15,"forks":4,"open_issues":15,"watchers":5,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201"},"html":{"href":"https://github.com/andela/suyabay/pull/201"},"issue":{"href":"https://api.github.com/repos/andela/suyabay/issues/201"},"comments":{"href":"https://api.github.com/repos/andela/suyabay/issues/201/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/suyabay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/suyabay/pulls/201/commits"},"statuses":{"href":"https://api.github.com/repos/andela/suyabay/statuses/859f4cd138f837c835428518ed0d7126fa0aa2be"}}}}