{"action":"created","comment":{"url":"https://api.github.com/repos/Tai-f/chat-space/pulls/comments/91660242","pull_request_review_id":12170692,"id":91660242,"diff_hunk":"@@ -2,42 +2,41 @@ $(function(){\n \n   var textField = $(\"#message_body\");\n   var messageUl = $(\".chat-messages\");\n+  var imageField = $(\"#message_image\");\n \n   function appendList(data){\n-    var dateElement = $('<p class = \"chat-message__time\">');\n-    var messageElement = $('<p class= \"chat-message__body\">');\n-    var listElement = $('<li class= \"chat-message\">');\n-    var headerElement = $('<div class = \"chat-message__header clearfix\">');\n     var name = $('h5').text();\n     var appendName = $('<p class= \"chat-message__name\">').append(name);","path":"app/assets/javascripts/messages.js","position":12,"original_position":12,"commit_id":"6cd1eb6660db06e870ea9b16770b34549dc1e750","original_commit_id":"6cd1eb6660db06e870ea9b16770b34549dc1e750","user":{"login":"takebnn26","id":20158479,"avatar_url":"https://avatars.githubusercontent.com/u/20158479?v=3","gravatar_id":"","url":"https://api.github.com/users/takebnn26","html_url":"https://github.com/takebnn26","followers_url":"https://api.github.com/users/takebnn26/followers","following_url":"https://api.github.com/users/takebnn26/following{/other_user}","gists_url":"https://api.github.com/users/takebnn26/gists{/gist_id}","starred_url":"https://api.github.com/users/takebnn26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takebnn26/subscriptions","organizations_url":"https://api.github.com/users/takebnn26/orgs","repos_url":"https://api.github.com/users/takebnn26/repos","events_url":"https://api.github.com/users/takebnn26/events{/privacy}","received_events_url":"https://api.github.com/users/takebnn26/received_events","type":"User","site_admin":false},"body":"こちらappendを多用するのは、一つ一つ処理を行っているので好ましくありません。\r\nここ以下からほとんど使わずに一つのHTML要素のかたまりを作りましょう","created_at":"2016-12-09T05:15:26Z","updated_at":"2016-12-09T05:15:48Z","html_url":"https://github.com/Tai-f/chat-space/pull/25#discussion_r91660242","pull_request_url":"https://api.github.com/repos/Tai-f/chat-space/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/Tai-f/chat-space/pulls/comments/91660242"},"html":{"href":"https://github.com/Tai-f/chat-space/pull/25#discussion_r91660242"},"pull_request":{"href":"https://api.github.com/repos/Tai-f/chat-space/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/Tai-f/chat-space/pulls/25","id":97252146,"html_url":"https://github.com/Tai-f/chat-space/pull/25","diff_url":"https://github.com/Tai-f/chat-space/pull/25.diff","patch_url":"https://github.com/Tai-f/chat-space/pull/25.patch","issue_url":"https://api.github.com/repos/Tai-f/chat-space/issues/25","number":25,"state":"open","locked":false,"title":"Modify the function of sending messages","user":{"login":"Tai-f","id":22855439,"avatar_url":"https://avatars.githubusercontent.com/u/22855439?v=3","gravatar_id":"","url":"https://api.github.com/users/Tai-f","html_url":"https://github.com/Tai-f","followers_url":"https://api.github.com/users/Tai-f/followers","following_url":"https://api.github.com/users/Tai-f/following{/other_user}","gists_url":"https://api.github.com/users/Tai-f/gists{/gist_id}","starred_url":"https://api.github.com/users/Tai-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tai-f/subscriptions","organizations_url":"https://api.github.com/users/Tai-f/orgs","repos_url":"https://api.github.com/users/Tai-f/repos","events_url":"https://api.github.com/users/Tai-f/events{/privacy}","received_events_url":"https://api.github.com/users/Tai-f/received_events","type":"User","site_admin":false},"body":"# what \n1. it configures to send the uploaded image file (also included an async ver.)\n2. it viewed the uploaded image\n\n# why\nto be possible for uploading files of the image & viewing\n\n\n","created_at":"2016-12-09T05:09:56Z","updated_at":"2016-12-09T05:18:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a5dcfea401b33a117cd1fe2d7330cf949b0fa47","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tai-f/chat-space/pulls/25/commits","review_comments_url":"https://api.github.com/repos/Tai-f/chat-space/pulls/25/comments","review_comment_url":"https://api.github.com/repos/Tai-f/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tai-f/chat-space/issues/25/comments","statuses_url":"https://api.github.com/repos/Tai-f/chat-space/statuses/6cd1eb6660db06e870ea9b16770b34549dc1e750","head":{"label":"Tai-f:Modify-the-function-of-sending-messages","ref":"Modify-the-function-of-sending-messages","sha":"6cd1eb6660db06e870ea9b16770b34549dc1e750","user":{"login":"Tai-f","id":22855439,"avatar_url":"https://avatars.githubusercontent.com/u/22855439?v=3","gravatar_id":"","url":"https://api.github.com/users/Tai-f","html_url":"https://github.com/Tai-f","followers_url":"https://api.github.com/users/Tai-f/followers","following_url":"https://api.github.com/users/Tai-f/following{/other_user}","gists_url":"https://api.github.com/users/Tai-f/gists{/gist_id}","starred_url":"https://api.github.com/users/Tai-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tai-f/subscriptions","organizations_url":"https://api.github.com/users/Tai-f/orgs","repos_url":"https://api.github.com/users/Tai-f/repos","events_url":"https://api.github.com/users/Tai-f/events{/privacy}","received_events_url":"https://api.github.com/users/Tai-f/received_events","type":"User","site_admin":false},"repo":{"id":73687815,"name":"chat-space","full_name":"Tai-f/chat-space","owner":{"login":"Tai-f","id":22855439,"avatar_url":"https://avatars.githubusercontent.com/u/22855439?v=3","gravatar_id":"","url":"https://api.github.com/users/Tai-f","html_url":"https://github.com/Tai-f","followers_url":"https://api.github.com/users/Tai-f/followers","following_url":"https://api.github.com/users/Tai-f/following{/other_user}","gists_url":"https://api.github.com/users/Tai-f/gists{/gist_id}","starred_url":"https://api.github.com/users/Tai-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tai-f/subscriptions","organizations_url":"https://api.github.com/users/Tai-f/orgs","repos_url":"https://api.github.com/users/Tai-f/repos","events_url":"https://api.github.com/users/Tai-f/events{/privacy}","received_events_url":"https://api.github.com/users/Tai-f/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tai-f/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Tai-f/chat-space","forks_url":"https://api.github.com/repos/Tai-f/chat-space/forks","keys_url":"https://api.github.com/repos/Tai-f/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tai-f/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tai-f/chat-space/teams","hooks_url":"https://api.github.com/repos/Tai-f/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Tai-f/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Tai-f/chat-space/events","assignees_url":"https://api.github.com/repos/Tai-f/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Tai-f/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Tai-f/chat-space/tags","blobs_url":"https://api.github.com/repos/Tai-f/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tai-f/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tai-f/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tai-f/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tai-f/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Tai-f/chat-space/languages","stargazers_url":"https://api.github.com/repos/Tai-f/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Tai-f/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Tai-f/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Tai-f/chat-space/subscription","commits_url":"https://api.github.com/repos/Tai-f/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tai-f/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tai-f/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tai-f/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tai-f/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Tai-f/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tai-f/chat-space/merges","archive_url":"https://api.github.com/repos/Tai-f/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tai-f/chat-space/downloads","issues_url":"https://api.github.com/repos/Tai-f/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Tai-f/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Tai-f/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Tai-f/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tai-f/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Tai-f/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Tai-f/chat-space/deployments","created_at":"2016-11-14T09:22:01Z","updated_at":"2016-11-14T09:25:18Z","pushed_at":"2016-12-09T05:09:56Z","git_url":"git://github.com/Tai-f/chat-space.git","ssh_url":"git@github.com:Tai-f/chat-space.git","clone_url":"https://github.com/Tai-f/chat-space.git","svn_url":"https://github.com/Tai-f/chat-space","homepage":null,"size":553,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Tai-f:master","ref":"master","sha":"8503ebcf21655b93d27abd39fd65df3233cb733c","user":{"login":"Tai-f","id":22855439,"avatar_url":"https://avatars.githubusercontent.com/u/22855439?v=3","gravatar_id":"","url":"https://api.github.com/users/Tai-f","html_url":"https://github.com/Tai-f","followers_url":"https://api.github.com/users/Tai-f/followers","following_url":"https://api.github.com/users/Tai-f/following{/other_user}","gists_url":"https://api.github.com/users/Tai-f/gists{/gist_id}","starred_url":"https://api.github.com/users/Tai-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tai-f/subscriptions","organizations_url":"https://api.github.com/users/Tai-f/orgs","repos_url":"https://api.github.com/users/Tai-f/repos","events_url":"https://api.github.com/users/Tai-f/events{/privacy}","received_events_url":"https://api.github.com/users/Tai-f/received_events","type":"User","site_admin":false},"repo":{"id":73687815,"name":"chat-space","full_name":"Tai-f/chat-space","owner":{"login":"Tai-f","id":22855439,"avatar_url":"https://avatars.githubusercontent.com/u/22855439?v=3","gravatar_id":"","url":"https://api.github.com/users/Tai-f","html_url":"https://github.com/Tai-f","followers_url":"https://api.github.com/users/Tai-f/followers","following_url":"https://api.github.com/users/Tai-f/following{/other_user}","gists_url":"https://api.github.com/users/Tai-f/gists{/gist_id}","starred_url":"https://api.github.com/users/Tai-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tai-f/subscriptions","organizations_url":"https://api.github.com/users/Tai-f/orgs","repos_url":"https://api.github.com/users/Tai-f/repos","events_url":"https://api.github.com/users/Tai-f/events{/privacy}","received_events_url":"https://api.github.com/users/Tai-f/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tai-f/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Tai-f/chat-space","forks_url":"https://api.github.com/repos/Tai-f/chat-space/forks","keys_url":"https://api.github.com/repos/Tai-f/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tai-f/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tai-f/chat-space/teams","hooks_url":"https://api.github.com/repos/Tai-f/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Tai-f/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Tai-f/chat-space/events","assignees_url":"https://api.github.com/repos/Tai-f/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Tai-f/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Tai-f/chat-space/tags","blobs_url":"https://api.github.com/repos/Tai-f/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tai-f/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tai-f/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tai-f/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tai-f/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Tai-f/chat-space/languages","stargazers_url":"https://api.github.com/repos/Tai-f/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Tai-f/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Tai-f/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Tai-f/chat-space/subscription","commits_url":"https://api.github.com/repos/Tai-f/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tai-f/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tai-f/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tai-f/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tai-f/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Tai-f/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tai-f/chat-space/merges","archive_url":"https://api.github.com/repos/Tai-f/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tai-f/chat-space/downloads","issues_url":"https://api.github.com/repos/Tai-f/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Tai-f/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Tai-f/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Tai-f/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tai-f/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Tai-f/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Tai-f/chat-space/deployments","created_at":"2016-11-14T09:22:01Z","updated_at":"2016-11-14T09:25:18Z","pushed_at":"2016-12-09T05:09:56Z","git_url":"git://github.com/Tai-f/chat-space.git","ssh_url":"git@github.com:Tai-f/chat-space.git","clone_url":"https://github.com/Tai-f/chat-space.git","svn_url":"https://github.com/Tai-f/chat-space","homepage":null,"size":553,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tai-f/chat-space/pulls/25"},"html":{"href":"https://github.com/Tai-f/chat-space/pull/25"},"issue":{"href":"https://api.github.com/repos/Tai-f/chat-space/issues/25"},"comments":{"href":"https://api.github.com/repos/Tai-f/chat-space/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/Tai-f/chat-space/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/Tai-f/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tai-f/chat-space/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/Tai-f/chat-space/statuses/6cd1eb6660db06e870ea9b16770b34549dc1e750"}}}}
{"actor":{"display_login":"takebnn26"}}