{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_51/pulls/comments/61229991","id":61229991,"diff_hunk":"@@ -0,0 +1,113 @@\n+/* subject task function */\n+$(function() {\n+    $.ajaxSetup({\n+        headers: {\n+            'X-CSRF-Token': $('meta[name=\"_token\"]').attr('content')\n+        }\n+    });\n+\n+    var rowNum = 0;\n+    $('#addRow').on('click', function(e) {\n+        e.preventDefault();\n+        rowNum ++;\n+        var row = '<div id=\"rowNum' + rowNum + '\" class=\"panel panel-default\">';\n+        row += '<div class=\"panel-body\"><div class=\"col-md-10\">';\n+        row += '<div class=\"form-group\"> <input class=\"form-control\" placeholder=\"' + taskName  + '\" name=\"taskName[]\" type=\"text\"> </div>';  \n+        row += '<textarea class=\"form-control\"rows=\"4\" placeholder=\"' + taskDescription  + '\"  name=\"taskDescription[]\" cols=\"50\"></textarea>';\n+        row += '</div>';  \n+        row += '<div class=\"col-md-2\">'; \n+        row += '<input type=\"button\" value=\"' + taskDelete + '\" onclick=\"removeRow(' + rowNum + ');\" class=\"btn btn-warning\"></div>'; \n+        row += '</div></div>';\n+        $('#itemRows').append(row);\n+    });\n+\n+    $(\".btnAddTask\").click(function(e) {","path":"public/js/admin-event.js","position":24,"original_position":24,"commit_id":"96f9a25909d69d7d3d502be0d83ad786af5f76ed","original_commit_id":"96f9a25909d69d7d3d502be0d83ad786af5f76ed","user":{"login":"namnv609","id":8691772,"avatar_url":"https://avatars.githubusercontent.com/u/8691772?v=3","gravatar_id":"","url":"https://api.github.com/users/namnv609","html_url":"https://github.com/namnv609","followers_url":"https://api.github.com/users/namnv609/followers","following_url":"https://api.github.com/users/namnv609/following{/other_user}","gists_url":"https://api.github.com/users/namnv609/gists{/gist_id}","starred_url":"https://api.github.com/users/namnv609/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namnv609/subscriptions","organizations_url":"https://api.github.com/users/namnv609/orgs","repos_url":"https://api.github.com/users/namnv609/repos","events_url":"https://api.github.com/users/namnv609/events{/privacy}","received_events_url":"https://api.github.com/users/namnv609/received_events","type":"User","site_admin":false},"body":"Lúc ``.on('click')`` lúc thì lại ``.click`` thế bạn? Nên dùng 1 kiểu cho thống nhất bạn nhé. Tớ khuyến khích dùng ``.on('event [event event ...]')``!","created_at":"2016-04-27T09:41:09Z","updated_at":"2016-04-27T09:41:09Z","html_url":"https://github.com/framgia/tms_51/pull/6#discussion_r61229991","pull_request_url":"https://api.github.com/repos/framgia/tms_51/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_51/pulls/comments/61229991"},"html":{"href":"https://github.com/framgia/tms_51/pull/6#discussion_r61229991"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_51/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_51/pulls/6","id":67818404,"html_url":"https://github.com/framgia/tms_51/pull/6","diff_url":"https://github.com/framgia/tms_51/pull/6.diff","patch_url":"https://github.com/framgia/tms_51/pull/6.patch","issue_url":"https://api.github.com/repos/framgia/tms_51/issues/6","number":6,"state":"open","locked":false,"title":"CRUD Subject","user":{"login":"midi9x","id":12813165,"avatar_url":"https://avatars.githubusercontent.com/u/12813165?v=3","gravatar_id":"","url":"https://api.github.com/users/midi9x","html_url":"https://github.com/midi9x","followers_url":"https://api.github.com/users/midi9x/followers","following_url":"https://api.github.com/users/midi9x/following{/other_user}","gists_url":"https://api.github.com/users/midi9x/gists{/gist_id}","starred_url":"https://api.github.com/users/midi9x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midi9x/subscriptions","organizations_url":"https://api.github.com/users/midi9x/orgs","repos_url":"https://api.github.com/users/midi9x/repos","events_url":"https://api.github.com/users/midi9x/events{/privacy}","received_events_url":"https://api.github.com/users/midi9x/received_events","type":"User","site_admin":false},"body":"CRUD Subject","created_at":"2016-04-26T02:38:13Z","updated_at":"2016-04-27T09:41:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b207f08888667c49822b96b91589ab40124d757c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_51/pulls/6/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_51/pulls/6/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_51/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_51/issues/6/comments","statuses_url":"https://api.github.com/repos/framgia/tms_51/statuses/96f9a25909d69d7d3d502be0d83ad786af5f76ed","head":{"label":"midi9x:60068_CRUD_Subject","ref":"60068_CRUD_Subject","sha":"96f9a25909d69d7d3d502be0d83ad786af5f76ed","user":{"login":"midi9x","id":12813165,"avatar_url":"https://avatars.githubusercontent.com/u/12813165?v=3","gravatar_id":"","url":"https://api.github.com/users/midi9x","html_url":"https://github.com/midi9x","followers_url":"https://api.github.com/users/midi9x/followers","following_url":"https://api.github.com/users/midi9x/following{/other_user}","gists_url":"https://api.github.com/users/midi9x/gists{/gist_id}","starred_url":"https://api.github.com/users/midi9x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midi9x/subscriptions","organizations_url":"https://api.github.com/users/midi9x/orgs","repos_url":"https://api.github.com/users/midi9x/repos","events_url":"https://api.github.com/users/midi9x/events{/privacy}","received_events_url":"https://api.github.com/users/midi9x/received_events","type":"User","site_admin":false},"repo":{"id":56111276,"name":"tms_51","full_name":"midi9x/tms_51","owner":{"login":"midi9x","id":12813165,"avatar_url":"https://avatars.githubusercontent.com/u/12813165?v=3","gravatar_id":"","url":"https://api.github.com/users/midi9x","html_url":"https://github.com/midi9x","followers_url":"https://api.github.com/users/midi9x/followers","following_url":"https://api.github.com/users/midi9x/following{/other_user}","gists_url":"https://api.github.com/users/midi9x/gists{/gist_id}","starred_url":"https://api.github.com/users/midi9x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midi9x/subscriptions","organizations_url":"https://api.github.com/users/midi9x/orgs","repos_url":"https://api.github.com/users/midi9x/repos","events_url":"https://api.github.com/users/midi9x/events{/privacy}","received_events_url":"https://api.github.com/users/midi9x/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/midi9x/tms_51","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/midi9x/tms_51","forks_url":"https://api.github.com/repos/midi9x/tms_51/forks","keys_url":"https://api.github.com/repos/midi9x/tms_51/keys{/key_id}","collaborators_url":"https://api.github.com/repos/midi9x/tms_51/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/midi9x/tms_51/teams","hooks_url":"https://api.github.com/repos/midi9x/tms_51/hooks","issue_events_url":"https://api.github.com/repos/midi9x/tms_51/issues/events{/number}","events_url":"https://api.github.com/repos/midi9x/tms_51/events","assignees_url":"https://api.github.com/repos/midi9x/tms_51/assignees{/user}","branches_url":"https://api.github.com/repos/midi9x/tms_51/branches{/branch}","tags_url":"https://api.github.com/repos/midi9x/tms_51/tags","blobs_url":"https://api.github.com/repos/midi9x/tms_51/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/midi9x/tms_51/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/midi9x/tms_51/git/refs{/sha}","trees_url":"https://api.github.com/repos/midi9x/tms_51/git/trees{/sha}","statuses_url":"https://api.github.com/repos/midi9x/tms_51/statuses/{sha}","languages_url":"https://api.github.com/repos/midi9x/tms_51/languages","stargazers_url":"https://api.github.com/repos/midi9x/tms_51/stargazers","contributors_url":"https://api.github.com/repos/midi9x/tms_51/contributors","subscribers_url":"https://api.github.com/repos/midi9x/tms_51/subscribers","subscription_url":"https://api.github.com/repos/midi9x/tms_51/subscription","commits_url":"https://api.github.com/repos/midi9x/tms_51/commits{/sha}","git_commits_url":"https://api.github.com/repos/midi9x/tms_51/git/commits{/sha}","comments_url":"https://api.github.com/repos/midi9x/tms_51/comments{/number}","issue_comment_url":"https://api.github.com/repos/midi9x/tms_51/issues/comments{/number}","contents_url":"https://api.github.com/repos/midi9x/tms_51/contents/{+path}","compare_url":"https://api.github.com/repos/midi9x/tms_51/compare/{base}...{head}","merges_url":"https://api.github.com/repos/midi9x/tms_51/merges","archive_url":"https://api.github.com/repos/midi9x/tms_51/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/midi9x/tms_51/downloads","issues_url":"https://api.github.com/repos/midi9x/tms_51/issues{/number}","pulls_url":"https://api.github.com/repos/midi9x/tms_51/pulls{/number}","milestones_url":"https://api.github.com/repos/midi9x/tms_51/milestones{/number}","notifications_url":"https://api.github.com/repos/midi9x/tms_51/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/midi9x/tms_51/labels{/name}","releases_url":"https://api.github.com/repos/midi9x/tms_51/releases{/id}","deployments_url":"https://api.github.com/repos/midi9x/tms_51/deployments","created_at":"2016-04-13T01:35:38Z","updated_at":"2016-04-12T03:55:40Z","pushed_at":"2016-04-26T09:43:13Z","git_url":"git://github.com/midi9x/tms_51.git","ssh_url":"git@github.com:midi9x/tms_51.git","clone_url":"https://github.com/midi9x/tms_51.git","svn_url":"https://github.com/midi9x/tms_51","homepage":null,"size":312,"stargazers_count":0,"watchers_count":0,"language":null,"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":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"2fd1a72d0ad48f5fe491b03cee645b1aa8cfabc8","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":56029372,"name":"tms_51","full_name":"framgia/tms_51","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/tms_51","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_51","forks_url":"https://api.github.com/repos/framgia/tms_51/forks","keys_url":"https://api.github.com/repos/framgia/tms_51/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_51/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_51/teams","hooks_url":"https://api.github.com/repos/framgia/tms_51/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_51/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_51/events","assignees_url":"https://api.github.com/repos/framgia/tms_51/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_51/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_51/tags","blobs_url":"https://api.github.com/repos/framgia/tms_51/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_51/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_51/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_51/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_51/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_51/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_51/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_51/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_51/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_51/subscription","commits_url":"https://api.github.com/repos/framgia/tms_51/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_51/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_51/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_51/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_51/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_51/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_51/merges","archive_url":"https://api.github.com/repos/framgia/tms_51/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_51/downloads","issues_url":"https://api.github.com/repos/framgia/tms_51/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_51/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_51/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_51/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_51/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_51/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/tms_51/deployments","created_at":"2016-04-12T03:55:40Z","updated_at":"2016-04-12T03:55:40Z","pushed_at":"2016-04-26T09:43:14Z","git_url":"git://github.com/framgia/tms_51.git","ssh_url":"git@github.com:framgia/tms_51.git","clone_url":"https://github.com/framgia/tms_51.git","svn_url":"https://github.com/framgia/tms_51","homepage":null,"size":304,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_51/pulls/6"},"html":{"href":"https://github.com/framgia/tms_51/pull/6"},"issue":{"href":"https://api.github.com/repos/framgia/tms_51/issues/6"},"comments":{"href":"https://api.github.com/repos/framgia/tms_51/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_51/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_51/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_51/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_51/statuses/96f9a25909d69d7d3d502be0d83ad786af5f76ed"}}}}