{"action":"created","comment":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/23391971","id":23391971,"diff_hunk":"@@ -153,4 +153,28 @@\n         e.stopPropagation();\n         e.preventDefault();\n     });\n+    $(\".topic-message\").on(\"click\", \"button.tick\", function(e){\n+        var $button = $(this),\n+            $form = $button.parents(\"form:first\"),\n+            $message = $form.parents(\"article\"),\n+            $usefulText = $message.find(\".message-helpful\"),\n+            csrfmiddlewaretoken = $form.find(\"input[name=csrfmiddlewaretoken]\").val();","path":"assets/js/action-ajax.js","position":9,"original_position":9,"commit_id":"0eab5e73715f78ed2bf46ee60935434be85b1df4","original_commit_id":"0eab5e73715f78ed2bf46ee60935434be85b1df4","user":{"login":"Situphen","id":6664636,"avatar_url":"https://avatars.githubusercontent.com/u/6664636?v=3","gravatar_id":"","url":"https://api.github.com/users/Situphen","html_url":"https://github.com/Situphen","followers_url":"https://api.github.com/users/Situphen/followers","following_url":"https://api.github.com/users/Situphen/following{/other_user}","gists_url":"https://api.github.com/users/Situphen/gists{/gist_id}","starred_url":"https://api.github.com/users/Situphen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Situphen/subscriptions","organizations_url":"https://api.github.com/users/Situphen/orgs","repos_url":"https://api.github.com/users/Situphen/repos","events_url":"https://api.github.com/users/Situphen/events{/privacy}","received_events_url":"https://api.github.com/users/Situphen/received_events","type":"User","site_admin":false},"body":"Un refactoring du JS est prévu mais pas pour tout de suite.","created_at":"2015-01-22T17:21:59Z","updated_at":"2015-01-22T17:21:59Z","html_url":"https://github.com/zestedesavoir/zds-site/pull/2065#discussion_r23391971","pull_request_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065","_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/23391971"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/2065#discussion_r23391971"},"pull_request":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065"}}},"pull_request":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065","id":27573622,"html_url":"https://github.com/zestedesavoir/zds-site/pull/2065","diff_url":"https://github.com/zestedesavoir/zds-site/pull/2065.diff","patch_url":"https://github.com/zestedesavoir/zds-site/pull/2065.patch","issue_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2065","number":2065,"state":"open","locked":false,"title":"Bouton \"Cette réponse m'a aide\" AJAXifié","user":{"login":"Cydonia7","id":6281515,"avatar_url":"https://avatars.githubusercontent.com/u/6281515?v=3","gravatar_id":"","url":"https://api.github.com/users/Cydonia7","html_url":"https://github.com/Cydonia7","followers_url":"https://api.github.com/users/Cydonia7/followers","following_url":"https://api.github.com/users/Cydonia7/following{/other_user}","gists_url":"https://api.github.com/users/Cydonia7/gists{/gist_id}","starred_url":"https://api.github.com/users/Cydonia7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cydonia7/subscriptions","organizations_url":"https://api.github.com/users/Cydonia7/orgs","repos_url":"https://api.github.com/users/Cydonia7/repos","events_url":"https://api.github.com/users/Cydonia7/events{/privacy}","received_events_url":"https://api.github.com/users/Cydonia7/received_events","type":"User","site_admin":false},"body":"| Q                         | R\r\n| ------------------------- | -------------------------------------------\r\n| Correction de bugs ?      | non\r\n| Nouvelle Fonctionnalité ? | oui\r\n| Tickets concernés         | #2041  \r\n\r\nQA:\r\n- Faire un `gulp build`\r\n- Essayer de marquer une réponse à un sujet comme utile\r\n- Ca devrait être à peu près tout","created_at":"2015-01-18T16:52:23Z","updated_at":"2015-01-22T17:22:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f389b94ef993ed9a4e9d3ea511604f34a5cf7ff7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065/commits","review_comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065/comments","review_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/{number}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2065/comments","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/0eab5e73715f78ed2bf46ee60935434be85b1df4","head":{"label":"Cydonia7:useful_ajax","ref":"useful_ajax","sha":"0eab5e73715f78ed2bf46ee60935434be85b1df4","user":{"login":"Cydonia7","id":6281515,"avatar_url":"https://avatars.githubusercontent.com/u/6281515?v=3","gravatar_id":"","url":"https://api.github.com/users/Cydonia7","html_url":"https://github.com/Cydonia7","followers_url":"https://api.github.com/users/Cydonia7/followers","following_url":"https://api.github.com/users/Cydonia7/following{/other_user}","gists_url":"https://api.github.com/users/Cydonia7/gists{/gist_id}","starred_url":"https://api.github.com/users/Cydonia7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cydonia7/subscriptions","organizations_url":"https://api.github.com/users/Cydonia7/orgs","repos_url":"https://api.github.com/users/Cydonia7/repos","events_url":"https://api.github.com/users/Cydonia7/events{/privacy}","received_events_url":"https://api.github.com/users/Cydonia7/received_events","type":"User","site_admin":false},"repo":{"id":27891534,"name":"zds-site","full_name":"Cydonia7/zds-site","owner":{"login":"Cydonia7","id":6281515,"avatar_url":"https://avatars.githubusercontent.com/u/6281515?v=3","gravatar_id":"","url":"https://api.github.com/users/Cydonia7","html_url":"https://github.com/Cydonia7","followers_url":"https://api.github.com/users/Cydonia7/followers","following_url":"https://api.github.com/users/Cydonia7/following{/other_user}","gists_url":"https://api.github.com/users/Cydonia7/gists{/gist_id}","starred_url":"https://api.github.com/users/Cydonia7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cydonia7/subscriptions","organizations_url":"https://api.github.com/users/Cydonia7/orgs","repos_url":"https://api.github.com/users/Cydonia7/repos","events_url":"https://api.github.com/users/Cydonia7/events{/privacy}","received_events_url":"https://api.github.com/users/Cydonia7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cydonia7/zds-site","description":"Dépot ZDS","fork":true,"url":"https://api.github.com/repos/Cydonia7/zds-site","forks_url":"https://api.github.com/repos/Cydonia7/zds-site/forks","keys_url":"https://api.github.com/repos/Cydonia7/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cydonia7/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cydonia7/zds-site/teams","hooks_url":"https://api.github.com/repos/Cydonia7/zds-site/hooks","issue_events_url":"https://api.github.com/repos/Cydonia7/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/Cydonia7/zds-site/events","assignees_url":"https://api.github.com/repos/Cydonia7/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/Cydonia7/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/Cydonia7/zds-site/tags","blobs_url":"https://api.github.com/repos/Cydonia7/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cydonia7/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cydonia7/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cydonia7/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cydonia7/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/Cydonia7/zds-site/languages","stargazers_url":"https://api.github.com/repos/Cydonia7/zds-site/stargazers","contributors_url":"https://api.github.com/repos/Cydonia7/zds-site/contributors","subscribers_url":"https://api.github.com/repos/Cydonia7/zds-site/subscribers","subscription_url":"https://api.github.com/repos/Cydonia7/zds-site/subscription","commits_url":"https://api.github.com/repos/Cydonia7/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cydonia7/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cydonia7/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cydonia7/zds-site/issues/comments/{number}","contents_url":"https://api.github.com/repos/Cydonia7/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/Cydonia7/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cydonia7/zds-site/merges","archive_url":"https://api.github.com/repos/Cydonia7/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cydonia7/zds-site/downloads","issues_url":"https://api.github.com/repos/Cydonia7/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/Cydonia7/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/Cydonia7/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/Cydonia7/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cydonia7/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/Cydonia7/zds-site/releases{/id}","created_at":"2014-12-11T21:02:41Z","updated_at":"2015-01-18T09:24:33Z","pushed_at":"2015-01-19T18:17:06Z","git_url":"git://github.com/Cydonia7/zds-site.git","ssh_url":"git@github.com:Cydonia7/zds-site.git","clone_url":"https://github.com/Cydonia7/zds-site.git","svn_url":"https://github.com/Cydonia7/zds-site","homepage":null,"size":53813,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"zestedesavoir:dev","ref":"dev","sha":"68500639949782989bd87343e01ff895412ea08e","user":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"repo":{"id":14778920,"name":"zds-site","full_name":"zestedesavoir/zds-site","owner":{"login":"zestedesavoir","id":7406239,"avatar_url":"https://avatars.githubusercontent.com/u/7406239?v=3","gravatar_id":"","url":"https://api.github.com/users/zestedesavoir","html_url":"https://github.com/zestedesavoir","followers_url":"https://api.github.com/users/zestedesavoir/followers","following_url":"https://api.github.com/users/zestedesavoir/following{/other_user}","gists_url":"https://api.github.com/users/zestedesavoir/gists{/gist_id}","starred_url":"https://api.github.com/users/zestedesavoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zestedesavoir/subscriptions","organizations_url":"https://api.github.com/users/zestedesavoir/orgs","repos_url":"https://api.github.com/users/zestedesavoir/repos","events_url":"https://api.github.com/users/zestedesavoir/events{/privacy}","received_events_url":"https://api.github.com/users/zestedesavoir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zestedesavoir/zds-site","description":"Dépot ZDS","fork":false,"url":"https://api.github.com/repos/zestedesavoir/zds-site","forks_url":"https://api.github.com/repos/zestedesavoir/zds-site/forks","keys_url":"https://api.github.com/repos/zestedesavoir/zds-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zestedesavoir/zds-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zestedesavoir/zds-site/teams","hooks_url":"https://api.github.com/repos/zestedesavoir/zds-site/hooks","issue_events_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/events{/number}","events_url":"https://api.github.com/repos/zestedesavoir/zds-site/events","assignees_url":"https://api.github.com/repos/zestedesavoir/zds-site/assignees{/user}","branches_url":"https://api.github.com/repos/zestedesavoir/zds-site/branches{/branch}","tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/tags","blobs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/{sha}","languages_url":"https://api.github.com/repos/zestedesavoir/zds-site/languages","stargazers_url":"https://api.github.com/repos/zestedesavoir/zds-site/stargazers","contributors_url":"https://api.github.com/repos/zestedesavoir/zds-site/contributors","subscribers_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscribers","subscription_url":"https://api.github.com/repos/zestedesavoir/zds-site/subscription","commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/zestedesavoir/zds-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/comments/{number}","contents_url":"https://api.github.com/repos/zestedesavoir/zds-site/contents/{+path}","compare_url":"https://api.github.com/repos/zestedesavoir/zds-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zestedesavoir/zds-site/merges","archive_url":"https://api.github.com/repos/zestedesavoir/zds-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zestedesavoir/zds-site/downloads","issues_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues{/number}","pulls_url":"https://api.github.com/repos/zestedesavoir/zds-site/pulls{/number}","milestones_url":"https://api.github.com/repos/zestedesavoir/zds-site/milestones{/number}","notifications_url":"https://api.github.com/repos/zestedesavoir/zds-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/labels{/name}","releases_url":"https://api.github.com/repos/zestedesavoir/zds-site/releases{/id}","created_at":"2013-11-28T14:23:48Z","updated_at":"2015-01-21T19:20:48Z","pushed_at":"2015-01-21T07:43:08Z","git_url":"git://github.com/zestedesavoir/zds-site.git","ssh_url":"git@github.com:zestedesavoir/zds-site.git","clone_url":"https://github.com/zestedesavoir/zds-site.git","svn_url":"https://github.com/zestedesavoir/zds-site","homepage":null,"size":129174,"stargazers_count":77,"watchers_count":77,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":67,"mirror_url":null,"open_issues_count":248,"forks":67,"open_issues":248,"watchers":77,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065"},"html":{"href":"https://github.com/zestedesavoir/zds-site/pull/2065"},"issue":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2065"},"comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2065/comments"},"review_comments":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065/comments"},"review_comment":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/pulls/2065/commits"},"statuses":{"href":"https://api.github.com/repos/zestedesavoir/zds-site/statuses/0eab5e73715f78ed2bf46ee60935434be85b1df4"}}}}