{"action":"created","comment":{"url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/comments/49934306","id":49934306,"diff_hunk":"@@ -0,0 +1,69 @@\n+<div class=\"bucket\">\n+\t<div class=\"container\">\n+\t\t<div class=\"row\">\n+\t\t\t<p class=\"intro-header\">สิ้นค้าในตะกร้า</p>\n+\t\t</div>\n+\t\t<div class=\"row\">\n+\t\t\t<div class=\"courseSelected-col\">\n+\t\t\t\t<div class=\"courseSelected-wrapper\">\n+\t\t\t\t\t<table>\n+\t\t\t\t        <tbody>\n+\t\t\t\t        <% for courseSelected in @selected_course %>\n+\t\t\t\t          <% @totalPrice += courseSelected.price %>\n+\t\t\t\t          <tr>\n+\t\t\t\t            <td class=\"course-remove\"><a href=\"\"><i class=\"fa fa-trash\"></i></a></td>","path":"app/views/public/main/user_bucket.html.erb","position":14,"original_position":14,"commit_id":"f996062e9a7a1ee735a793ae4ad96b0adfc32081","original_commit_id":"f996062e9a7a1ee735a793ae4ad96b0adfc32081","user":{"login":"beegeeta","id":6346335,"avatar_url":"https://avatars.githubusercontent.com/u/6346335?v=3","gravatar_id":"","url":"https://api.github.com/users/beegeeta","html_url":"https://github.com/beegeeta","followers_url":"https://api.github.com/users/beegeeta/followers","following_url":"https://api.github.com/users/beegeeta/following{/other_user}","gists_url":"https://api.github.com/users/beegeeta/gists{/gist_id}","starred_url":"https://api.github.com/users/beegeeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beegeeta/subscriptions","organizations_url":"https://api.github.com/users/beegeeta/orgs","repos_url":"https://api.github.com/users/beegeeta/repos","events_url":"https://api.github.com/users/beegeeta/events{/privacy}","received_events_url":"https://api.github.com/users/beegeeta/received_events","type":"User","site_admin":false},"body":"ตรงนี้อ่ะ ใส่ class พิเศษด้วย แบบ btn-remove-course แล้วใน js ก็ไปดักจับปุ่มกดนี้ด้วย class นี้\r\nแล้วก็ใส่ data-courseid = <%= courseSelected.id %> แล้วเวลา ดักจับก็ $('.btn-remove-course').on('click',function(e){\r\nตรง e ใช้ e.target.data อะไรนี่แระจะได้ค่า data-courseid ลองหาดู","created_at":"2016-01-16T17:06:50Z","updated_at":"2016-01-16T17:06:50Z","html_url":"https://github.com/beegeeta/Tutor_Academy/pull/3#discussion_r49934306","pull_request_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/comments/49934306"},"html":{"href":"https://github.com/beegeeta/Tutor_Academy/pull/3#discussion_r49934306"},"pull_request":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3","id":56257770,"html_url":"https://github.com/beegeeta/Tutor_Academy/pull/3","diff_url":"https://github.com/beegeeta/Tutor_Academy/pull/3.diff","patch_url":"https://github.com/beegeeta/Tutor_Academy/pull/3.patch","issue_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/3","number":3,"state":"open","locked":false,"title":"Feature add table userchoosecourse","user":{"login":"usman-coe","id":2543952,"avatar_url":"https://avatars.githubusercontent.com/u/2543952?v=3","gravatar_id":"","url":"https://api.github.com/users/usman-coe","html_url":"https://github.com/usman-coe","followers_url":"https://api.github.com/users/usman-coe/followers","following_url":"https://api.github.com/users/usman-coe/following{/other_user}","gists_url":"https://api.github.com/users/usman-coe/gists{/gist_id}","starred_url":"https://api.github.com/users/usman-coe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usman-coe/subscriptions","organizations_url":"https://api.github.com/users/usman-coe/orgs","repos_url":"https://api.github.com/users/usman-coe/repos","events_url":"https://api.github.com/users/usman-coe/events{/privacy}","received_events_url":"https://api.github.com/users/usman-coe/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-16T17:01:29Z","updated_at":"2016-01-16T17:06:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cab08c3ce6b76c342a443730a54a7ca4cbc118c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3/commits","review_comments_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3/comments","review_comment_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/3/comments","statuses_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/statuses/f996062e9a7a1ee735a793ae4ad96b0adfc32081","head":{"label":"beegeeta:feature-add-table-userchoosecourse","ref":"feature-add-table-userchoosecourse","sha":"f996062e9a7a1ee735a793ae4ad96b0adfc32081","user":{"login":"beegeeta","id":6346335,"avatar_url":"https://avatars.githubusercontent.com/u/6346335?v=3","gravatar_id":"","url":"https://api.github.com/users/beegeeta","html_url":"https://github.com/beegeeta","followers_url":"https://api.github.com/users/beegeeta/followers","following_url":"https://api.github.com/users/beegeeta/following{/other_user}","gists_url":"https://api.github.com/users/beegeeta/gists{/gist_id}","starred_url":"https://api.github.com/users/beegeeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beegeeta/subscriptions","organizations_url":"https://api.github.com/users/beegeeta/orgs","repos_url":"https://api.github.com/users/beegeeta/repos","events_url":"https://api.github.com/users/beegeeta/events{/privacy}","received_events_url":"https://api.github.com/users/beegeeta/received_events","type":"User","site_admin":false},"repo":{"id":46659921,"name":"Tutor_Academy","full_name":"beegeeta/Tutor_Academy","owner":{"login":"beegeeta","id":6346335,"avatar_url":"https://avatars.githubusercontent.com/u/6346335?v=3","gravatar_id":"","url":"https://api.github.com/users/beegeeta","html_url":"https://github.com/beegeeta","followers_url":"https://api.github.com/users/beegeeta/followers","following_url":"https://api.github.com/users/beegeeta/following{/other_user}","gists_url":"https://api.github.com/users/beegeeta/gists{/gist_id}","starred_url":"https://api.github.com/users/beegeeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beegeeta/subscriptions","organizations_url":"https://api.github.com/users/beegeeta/orgs","repos_url":"https://api.github.com/users/beegeeta/repos","events_url":"https://api.github.com/users/beegeeta/events{/privacy}","received_events_url":"https://api.github.com/users/beegeeta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beegeeta/Tutor_Academy","description":"","fork":false,"url":"https://api.github.com/repos/beegeeta/Tutor_Academy","forks_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/forks","keys_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/teams","hooks_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/hooks","issue_events_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/events{/number}","events_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/events","assignees_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/assignees{/user}","branches_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/branches{/branch}","tags_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/tags","blobs_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/refs{/sha}","trees_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/statuses/{sha}","languages_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/languages","stargazers_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/stargazers","contributors_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/contributors","subscribers_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/subscribers","subscription_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/subscription","commits_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/commits{/sha}","git_commits_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/commits{/sha}","comments_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/comments{/number}","issue_comment_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/comments{/number}","contents_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/contents/{+path}","compare_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/merges","archive_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/downloads","issues_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues{/number}","pulls_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls{/number}","milestones_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/milestones{/number}","notifications_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/labels{/name}","releases_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/releases{/id}","created_at":"2015-11-22T12:36:03Z","updated_at":"2015-12-06T14:17:25Z","pushed_at":"2016-01-16T17:01:29Z","git_url":"git://github.com/beegeeta/Tutor_Academy.git","ssh_url":"git@github.com:beegeeta/Tutor_Academy.git","clone_url":"https://github.com/beegeeta/Tutor_Academy.git","svn_url":"https://github.com/beegeeta/Tutor_Academy","homepage":null,"size":19226,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"beegeeta:master","ref":"master","sha":"172199b33bee2789a1ed14e2f0717a9948c092a1","user":{"login":"beegeeta","id":6346335,"avatar_url":"https://avatars.githubusercontent.com/u/6346335?v=3","gravatar_id":"","url":"https://api.github.com/users/beegeeta","html_url":"https://github.com/beegeeta","followers_url":"https://api.github.com/users/beegeeta/followers","following_url":"https://api.github.com/users/beegeeta/following{/other_user}","gists_url":"https://api.github.com/users/beegeeta/gists{/gist_id}","starred_url":"https://api.github.com/users/beegeeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beegeeta/subscriptions","organizations_url":"https://api.github.com/users/beegeeta/orgs","repos_url":"https://api.github.com/users/beegeeta/repos","events_url":"https://api.github.com/users/beegeeta/events{/privacy}","received_events_url":"https://api.github.com/users/beegeeta/received_events","type":"User","site_admin":false},"repo":{"id":46659921,"name":"Tutor_Academy","full_name":"beegeeta/Tutor_Academy","owner":{"login":"beegeeta","id":6346335,"avatar_url":"https://avatars.githubusercontent.com/u/6346335?v=3","gravatar_id":"","url":"https://api.github.com/users/beegeeta","html_url":"https://github.com/beegeeta","followers_url":"https://api.github.com/users/beegeeta/followers","following_url":"https://api.github.com/users/beegeeta/following{/other_user}","gists_url":"https://api.github.com/users/beegeeta/gists{/gist_id}","starred_url":"https://api.github.com/users/beegeeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beegeeta/subscriptions","organizations_url":"https://api.github.com/users/beegeeta/orgs","repos_url":"https://api.github.com/users/beegeeta/repos","events_url":"https://api.github.com/users/beegeeta/events{/privacy}","received_events_url":"https://api.github.com/users/beegeeta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beegeeta/Tutor_Academy","description":"","fork":false,"url":"https://api.github.com/repos/beegeeta/Tutor_Academy","forks_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/forks","keys_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/teams","hooks_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/hooks","issue_events_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/events{/number}","events_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/events","assignees_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/assignees{/user}","branches_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/branches{/branch}","tags_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/tags","blobs_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/refs{/sha}","trees_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/statuses/{sha}","languages_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/languages","stargazers_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/stargazers","contributors_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/contributors","subscribers_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/subscribers","subscription_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/subscription","commits_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/commits{/sha}","git_commits_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/git/commits{/sha}","comments_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/comments{/number}","issue_comment_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/comments{/number}","contents_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/contents/{+path}","compare_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/merges","archive_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/downloads","issues_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues{/number}","pulls_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls{/number}","milestones_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/milestones{/number}","notifications_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/labels{/name}","releases_url":"https://api.github.com/repos/beegeeta/Tutor_Academy/releases{/id}","created_at":"2015-11-22T12:36:03Z","updated_at":"2015-12-06T14:17:25Z","pushed_at":"2016-01-16T17:01:29Z","git_url":"git://github.com/beegeeta/Tutor_Academy.git","ssh_url":"git@github.com:beegeeta/Tutor_Academy.git","clone_url":"https://github.com/beegeeta/Tutor_Academy.git","svn_url":"https://github.com/beegeeta/Tutor_Academy","homepage":null,"size":19226,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3"},"html":{"href":"https://github.com/beegeeta/Tutor_Academy/pull/3"},"issue":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/3"},"comments":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/beegeeta/Tutor_Academy/statuses/f996062e9a7a1ee735a793ae4ad96b0adfc32081"}}}}