{"action":"created","comment":{"url":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/comments/84252613","pull_request_review_id":5040415,"id":84252613,"diff_hunk":"@@ -42,9 +52,11 @@\n \n       <% if user_signed_in? %>\n         <% if reply.user.id == current_user.id %>\n-          <%= link_to \"Delete\", {:action => 'destroy', :controller => \"replies\", :id => @reply.id, :new_thread_id => @new_thread.id}, :method => \"delete\", data: { confirm: 'Are you sure?' }, :class => 'reply-link edit-post'%>\n+          <a id=\"edit-reply-btn-<%= reply.id %>\" class=\"btn btn-default\" reply-id=\"<%= reply.id %>\" onClick=\"toggleEdit(this)\"><i class=\"fa fa-pencil\"></i></a>","path":"app/views/replies/_reply.html.erb","position":26,"original_position":26,"commit_id":"b6c61d0c7bce77495e25e53da69f5e339aa8cab7","original_commit_id":"ae3f14532622dbe4b5ea161bee5c50ba2b2698fa","user":{"login":"sonalkr132","id":7680662,"avatar_url":"https://avatars.githubusercontent.com/u/7680662?v=3","gravatar_id":"","url":"https://api.github.com/users/sonalkr132","html_url":"https://github.com/sonalkr132","followers_url":"https://api.github.com/users/sonalkr132/followers","following_url":"https://api.github.com/users/sonalkr132/following{/other_user}","gists_url":"https://api.github.com/users/sonalkr132/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalkr132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalkr132/subscriptions","organizations_url":"https://api.github.com/users/sonalkr132/orgs","repos_url":"https://api.github.com/users/sonalkr132/repos","events_url":"https://api.github.com/users/sonalkr132/events{/privacy}","received_events_url":"https://api.github.com/users/sonalkr132/received_events","type":"User","site_admin":false},"body":"Using id makes more sense here as it is unique for each reply.\r\nYou should try debugging it in console of inspector window. Try `$(\"*[id^='edit-reply-btn-']\")` and see if you get the elements or not.","created_at":"2016-10-20T10:17:08Z","updated_at":"2016-10-20T10:17:08Z","html_url":"https://github.com/sonalkr132/cat-forum/pull/28#discussion_r84252613","pull_request_url":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/comments/84252613"},"html":{"href":"https://github.com/sonalkr132/cat-forum/pull/28#discussion_r84252613"},"pull_request":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28","id":87736427,"html_url":"https://github.com/sonalkr132/cat-forum/pull/28","diff_url":"https://github.com/sonalkr132/cat-forum/pull/28.diff","patch_url":"https://github.com/sonalkr132/cat-forum/pull/28.patch","issue_url":"https://api.github.com/repos/sonalkr132/cat-forum/issues/28","number":28,"state":"open","locked":false,"title":"Fixes #22","user":{"login":"ananyo2012","id":10486343,"avatar_url":"https://avatars.githubusercontent.com/u/10486343?v=3","gravatar_id":"","url":"https://api.github.com/users/ananyo2012","html_url":"https://github.com/ananyo2012","followers_url":"https://api.github.com/users/ananyo2012/followers","following_url":"https://api.github.com/users/ananyo2012/following{/other_user}","gists_url":"https://api.github.com/users/ananyo2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ananyo2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananyo2012/subscriptions","organizations_url":"https://api.github.com/users/ananyo2012/orgs","repos_url":"https://api.github.com/users/ananyo2012/repos","events_url":"https://api.github.com/users/ananyo2012/events{/privacy}","received_events_url":"https://api.github.com/users/ananyo2012/received_events","type":"User","site_admin":false},"body":"Use Ajax update for replies\r\n\r\nComment best_in_place in Gemfile\r\n\r\nCleanup javascript files\r\n\r\nUpdate Readme\r\n\r\n@sonalkr132 Please review","created_at":"2016-10-03T15:23:46Z","updated_at":"2016-10-20T10:17:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fd9f4711f3696609eac9fa072744cf696332bee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28/commits","review_comments_url":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28/comments","review_comment_url":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonalkr132/cat-forum/issues/28/comments","statuses_url":"https://api.github.com/repos/sonalkr132/cat-forum/statuses/b6c61d0c7bce77495e25e53da69f5e339aa8cab7","head":{"label":"ananyo2012:iss22","ref":"iss22","sha":"b6c61d0c7bce77495e25e53da69f5e339aa8cab7","user":{"login":"ananyo2012","id":10486343,"avatar_url":"https://avatars.githubusercontent.com/u/10486343?v=3","gravatar_id":"","url":"https://api.github.com/users/ananyo2012","html_url":"https://github.com/ananyo2012","followers_url":"https://api.github.com/users/ananyo2012/followers","following_url":"https://api.github.com/users/ananyo2012/following{/other_user}","gists_url":"https://api.github.com/users/ananyo2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ananyo2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananyo2012/subscriptions","organizations_url":"https://api.github.com/users/ananyo2012/orgs","repos_url":"https://api.github.com/users/ananyo2012/repos","events_url":"https://api.github.com/users/ananyo2012/events{/privacy}","received_events_url":"https://api.github.com/users/ananyo2012/received_events","type":"User","site_admin":false},"repo":{"id":34506580,"name":"cat-forum","full_name":"ananyo2012/cat-forum","owner":{"login":"ananyo2012","id":10486343,"avatar_url":"https://avatars.githubusercontent.com/u/10486343?v=3","gravatar_id":"","url":"https://api.github.com/users/ananyo2012","html_url":"https://github.com/ananyo2012","followers_url":"https://api.github.com/users/ananyo2012/followers","following_url":"https://api.github.com/users/ananyo2012/following{/other_user}","gists_url":"https://api.github.com/users/ananyo2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ananyo2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananyo2012/subscriptions","organizations_url":"https://api.github.com/users/ananyo2012/orgs","repos_url":"https://api.github.com/users/ananyo2012/repos","events_url":"https://api.github.com/users/ananyo2012/events{/privacy}","received_events_url":"https://api.github.com/users/ananyo2012/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ananyo2012/cat-forum","description":null,"fork":true,"url":"https://api.github.com/repos/ananyo2012/cat-forum","forks_url":"https://api.github.com/repos/ananyo2012/cat-forum/forks","keys_url":"https://api.github.com/repos/ananyo2012/cat-forum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ananyo2012/cat-forum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ananyo2012/cat-forum/teams","hooks_url":"https://api.github.com/repos/ananyo2012/cat-forum/hooks","issue_events_url":"https://api.github.com/repos/ananyo2012/cat-forum/issues/events{/number}","events_url":"https://api.github.com/repos/ananyo2012/cat-forum/events","assignees_url":"https://api.github.com/repos/ananyo2012/cat-forum/assignees{/user}","branches_url":"https://api.github.com/repos/ananyo2012/cat-forum/branches{/branch}","tags_url":"https://api.github.com/repos/ananyo2012/cat-forum/tags","blobs_url":"https://api.github.com/repos/ananyo2012/cat-forum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ananyo2012/cat-forum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ananyo2012/cat-forum/git/refs{/sha}","trees_url":"https://api.github.com/repos/ananyo2012/cat-forum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ananyo2012/cat-forum/statuses/{sha}","languages_url":"https://api.github.com/repos/ananyo2012/cat-forum/languages","stargazers_url":"https://api.github.com/repos/ananyo2012/cat-forum/stargazers","contributors_url":"https://api.github.com/repos/ananyo2012/cat-forum/contributors","subscribers_url":"https://api.github.com/repos/ananyo2012/cat-forum/subscribers","subscription_url":"https://api.github.com/repos/ananyo2012/cat-forum/subscription","commits_url":"https://api.github.com/repos/ananyo2012/cat-forum/commits{/sha}","git_commits_url":"https://api.github.com/repos/ananyo2012/cat-forum/git/commits{/sha}","comments_url":"https://api.github.com/repos/ananyo2012/cat-forum/comments{/number}","issue_comment_url":"https://api.github.com/repos/ananyo2012/cat-forum/issues/comments{/number}","contents_url":"https://api.github.com/repos/ananyo2012/cat-forum/contents/{+path}","compare_url":"https://api.github.com/repos/ananyo2012/cat-forum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ananyo2012/cat-forum/merges","archive_url":"https://api.github.com/repos/ananyo2012/cat-forum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ananyo2012/cat-forum/downloads","issues_url":"https://api.github.com/repos/ananyo2012/cat-forum/issues{/number}","pulls_url":"https://api.github.com/repos/ananyo2012/cat-forum/pulls{/number}","milestones_url":"https://api.github.com/repos/ananyo2012/cat-forum/milestones{/number}","notifications_url":"https://api.github.com/repos/ananyo2012/cat-forum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ananyo2012/cat-forum/labels{/name}","releases_url":"https://api.github.com/repos/ananyo2012/cat-forum/releases{/id}","deployments_url":"https://api.github.com/repos/ananyo2012/cat-forum/deployments","created_at":"2015-04-24T08:17:15Z","updated_at":"2016-09-11T16:59:26Z","pushed_at":"2016-10-20T09:52:58Z","git_url":"git://github.com/ananyo2012/cat-forum.git","ssh_url":"git@github.com:ananyo2012/cat-forum.git","clone_url":"https://github.com/ananyo2012/cat-forum.git","svn_url":"https://github.com/ananyo2012/cat-forum","homepage":"http://catforum.mntc.in/","size":3368,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"github_master"}},"base":{"label":"sonalkr132:github_master","ref":"github_master","sha":"d558408a833a344429de91193759d53574330789","user":{"login":"sonalkr132","id":7680662,"avatar_url":"https://avatars.githubusercontent.com/u/7680662?v=3","gravatar_id":"","url":"https://api.github.com/users/sonalkr132","html_url":"https://github.com/sonalkr132","followers_url":"https://api.github.com/users/sonalkr132/followers","following_url":"https://api.github.com/users/sonalkr132/following{/other_user}","gists_url":"https://api.github.com/users/sonalkr132/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalkr132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalkr132/subscriptions","organizations_url":"https://api.github.com/users/sonalkr132/orgs","repos_url":"https://api.github.com/users/sonalkr132/repos","events_url":"https://api.github.com/users/sonalkr132/events{/privacy}","received_events_url":"https://api.github.com/users/sonalkr132/received_events","type":"User","site_admin":false},"repo":{"id":32791328,"name":"cat-forum","full_name":"sonalkr132/cat-forum","owner":{"login":"sonalkr132","id":7680662,"avatar_url":"https://avatars.githubusercontent.com/u/7680662?v=3","gravatar_id":"","url":"https://api.github.com/users/sonalkr132","html_url":"https://github.com/sonalkr132","followers_url":"https://api.github.com/users/sonalkr132/followers","following_url":"https://api.github.com/users/sonalkr132/following{/other_user}","gists_url":"https://api.github.com/users/sonalkr132/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalkr132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalkr132/subscriptions","organizations_url":"https://api.github.com/users/sonalkr132/orgs","repos_url":"https://api.github.com/users/sonalkr132/repos","events_url":"https://api.github.com/users/sonalkr132/events{/privacy}","received_events_url":"https://api.github.com/users/sonalkr132/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sonalkr132/cat-forum","description":"A forum for questions related to CAT exam","fork":false,"url":"https://api.github.com/repos/sonalkr132/cat-forum","forks_url":"https://api.github.com/repos/sonalkr132/cat-forum/forks","keys_url":"https://api.github.com/repos/sonalkr132/cat-forum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonalkr132/cat-forum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonalkr132/cat-forum/teams","hooks_url":"https://api.github.com/repos/sonalkr132/cat-forum/hooks","issue_events_url":"https://api.github.com/repos/sonalkr132/cat-forum/issues/events{/number}","events_url":"https://api.github.com/repos/sonalkr132/cat-forum/events","assignees_url":"https://api.github.com/repos/sonalkr132/cat-forum/assignees{/user}","branches_url":"https://api.github.com/repos/sonalkr132/cat-forum/branches{/branch}","tags_url":"https://api.github.com/repos/sonalkr132/cat-forum/tags","blobs_url":"https://api.github.com/repos/sonalkr132/cat-forum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonalkr132/cat-forum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonalkr132/cat-forum/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonalkr132/cat-forum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonalkr132/cat-forum/statuses/{sha}","languages_url":"https://api.github.com/repos/sonalkr132/cat-forum/languages","stargazers_url":"https://api.github.com/repos/sonalkr132/cat-forum/stargazers","contributors_url":"https://api.github.com/repos/sonalkr132/cat-forum/contributors","subscribers_url":"https://api.github.com/repos/sonalkr132/cat-forum/subscribers","subscription_url":"https://api.github.com/repos/sonalkr132/cat-forum/subscription","commits_url":"https://api.github.com/repos/sonalkr132/cat-forum/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonalkr132/cat-forum/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonalkr132/cat-forum/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonalkr132/cat-forum/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonalkr132/cat-forum/contents/{+path}","compare_url":"https://api.github.com/repos/sonalkr132/cat-forum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonalkr132/cat-forum/merges","archive_url":"https://api.github.com/repos/sonalkr132/cat-forum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonalkr132/cat-forum/downloads","issues_url":"https://api.github.com/repos/sonalkr132/cat-forum/issues{/number}","pulls_url":"https://api.github.com/repos/sonalkr132/cat-forum/pulls{/number}","milestones_url":"https://api.github.com/repos/sonalkr132/cat-forum/milestones{/number}","notifications_url":"https://api.github.com/repos/sonalkr132/cat-forum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonalkr132/cat-forum/labels{/name}","releases_url":"https://api.github.com/repos/sonalkr132/cat-forum/releases{/id}","deployments_url":"https://api.github.com/repos/sonalkr132/cat-forum/deployments","created_at":"2015-03-24T10:20:11Z","updated_at":"2016-09-29T17:31:28Z","pushed_at":"2016-10-20T09:52:58Z","git_url":"git://github.com/sonalkr132/cat-forum.git","ssh_url":"git@github.com:sonalkr132/cat-forum.git","clone_url":"https://github.com/sonalkr132/cat-forum.git","svn_url":"https://github.com/sonalkr132/cat-forum","homepage":"http://catforum.mntc.in/","size":3381,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":1,"default_branch":"github_master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28"},"html":{"href":"https://github.com/sonalkr132/cat-forum/pull/28"},"issue":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/issues/28"},"comments":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/sonalkr132/cat-forum/statuses/b6c61d0c7bce77495e25e53da69f5e339aa8cab7"}}}}
{"actor":{"display_login":"sonalkr132"}}