{"action":"created","comment":{"url":"https://api.github.com/repos/poolbath1/learning_journal/pulls/comments/27508784","id":27508784,"diff_hunk":"@@ -0,0 +1,46 @@\n+$('.add-entry').on('submit', function(e) {\n+    // Disable default behavior\n+    e.preventDefault();\n+    // Grab the title and content of our post\n+    var title = $('#title').val();\n+    var text = $('#text').val();\n+    var split_path = window.location.pathname.split(\"/\");","path":"static/js/add-entry.js","position":7,"original_position":7,"commit_id":"a838727fcb5807c813feb1175dce9da6e614c7c4","original_commit_id":"a838727fcb5807c813feb1175dce9da6e614c7c4","user":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"body":"should be possible to put the id of the post you are editing into the form as a hidden field, thus removing the need to scrape the URL to find this data.  ","created_at":"2015-03-31T18:35:14Z","updated_at":"2015-03-31T18:35:14Z","html_url":"https://github.com/poolbath1/learning_journal/pull/5#discussion_r27508784","pull_request_url":"https://api.github.com/repos/poolbath1/learning_journal/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/poolbath1/learning_journal/pulls/comments/27508784"},"html":{"href":"https://github.com/poolbath1/learning_journal/pull/5#discussion_r27508784"},"pull_request":{"href":"https://api.github.com/repos/poolbath1/learning_journal/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/poolbath1/learning_journal/pulls/5","id":32296788,"html_url":"https://github.com/poolbath1/learning_journal/pull/5","diff_url":"https://github.com/poolbath1/learning_journal/pull/5.diff","patch_url":"https://github.com/poolbath1/learning_journal/pull/5.patch","issue_url":"https://api.github.com/repos/poolbath1/learning_journal/issues/5","number":5,"state":"open","locked":false,"title":"Ajax twitter","user":{"login":"poolbath1","id":3937302,"avatar_url":"https://avatars.githubusercontent.com/u/3937302?v=3","gravatar_id":"","url":"https://api.github.com/users/poolbath1","html_url":"https://github.com/poolbath1","followers_url":"https://api.github.com/users/poolbath1/followers","following_url":"https://api.github.com/users/poolbath1/following{/other_user}","gists_url":"https://api.github.com/users/poolbath1/gists{/gist_id}","starred_url":"https://api.github.com/users/poolbath1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolbath1/subscriptions","organizations_url":"https://api.github.com/users/poolbath1/orgs","repos_url":"https://api.github.com/users/poolbath1/repos","events_url":"https://api.github.com/users/poolbath1/events{/privacy}","received_events_url":"https://api.github.com/users/poolbath1/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-31T07:23:18Z","updated_at":"2015-03-31T18:35:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a2e8fcac60a2b8d40abcc8f8ae9abd8a8e486c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/poolbath1/learning_journal/pulls/5/commits","review_comments_url":"https://api.github.com/repos/poolbath1/learning_journal/pulls/5/comments","review_comment_url":"https://api.github.com/repos/poolbath1/learning_journal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poolbath1/learning_journal/issues/5/comments","statuses_url":"https://api.github.com/repos/poolbath1/learning_journal/statuses/a838727fcb5807c813feb1175dce9da6e614c7c4","head":{"label":"poolbath1:ajax-twitter","ref":"ajax-twitter","sha":"a838727fcb5807c813feb1175dce9da6e614c7c4","user":{"login":"poolbath1","id":3937302,"avatar_url":"https://avatars.githubusercontent.com/u/3937302?v=3","gravatar_id":"","url":"https://api.github.com/users/poolbath1","html_url":"https://github.com/poolbath1","followers_url":"https://api.github.com/users/poolbath1/followers","following_url":"https://api.github.com/users/poolbath1/following{/other_user}","gists_url":"https://api.github.com/users/poolbath1/gists{/gist_id}","starred_url":"https://api.github.com/users/poolbath1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolbath1/subscriptions","organizations_url":"https://api.github.com/users/poolbath1/orgs","repos_url":"https://api.github.com/users/poolbath1/repos","events_url":"https://api.github.com/users/poolbath1/events{/privacy}","received_events_url":"https://api.github.com/users/poolbath1/received_events","type":"User","site_admin":false},"repo":{"id":30266776,"name":"learning_journal","full_name":"poolbath1/learning_journal","owner":{"login":"poolbath1","id":3937302,"avatar_url":"https://avatars.githubusercontent.com/u/3937302?v=3","gravatar_id":"","url":"https://api.github.com/users/poolbath1","html_url":"https://github.com/poolbath1","followers_url":"https://api.github.com/users/poolbath1/followers","following_url":"https://api.github.com/users/poolbath1/following{/other_user}","gists_url":"https://api.github.com/users/poolbath1/gists{/gist_id}","starred_url":"https://api.github.com/users/poolbath1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolbath1/subscriptions","organizations_url":"https://api.github.com/users/poolbath1/orgs","repos_url":"https://api.github.com/users/poolbath1/repos","events_url":"https://api.github.com/users/poolbath1/events{/privacy}","received_events_url":"https://api.github.com/users/poolbath1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poolbath1/learning_journal","description":"A lightweight Pyramid web journal","fork":false,"url":"https://api.github.com/repos/poolbath1/learning_journal","forks_url":"https://api.github.com/repos/poolbath1/learning_journal/forks","keys_url":"https://api.github.com/repos/poolbath1/learning_journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poolbath1/learning_journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poolbath1/learning_journal/teams","hooks_url":"https://api.github.com/repos/poolbath1/learning_journal/hooks","issue_events_url":"https://api.github.com/repos/poolbath1/learning_journal/issues/events{/number}","events_url":"https://api.github.com/repos/poolbath1/learning_journal/events","assignees_url":"https://api.github.com/repos/poolbath1/learning_journal/assignees{/user}","branches_url":"https://api.github.com/repos/poolbath1/learning_journal/branches{/branch}","tags_url":"https://api.github.com/repos/poolbath1/learning_journal/tags","blobs_url":"https://api.github.com/repos/poolbath1/learning_journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poolbath1/learning_journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poolbath1/learning_journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/poolbath1/learning_journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poolbath1/learning_journal/statuses/{sha}","languages_url":"https://api.github.com/repos/poolbath1/learning_journal/languages","stargazers_url":"https://api.github.com/repos/poolbath1/learning_journal/stargazers","contributors_url":"https://api.github.com/repos/poolbath1/learning_journal/contributors","subscribers_url":"https://api.github.com/repos/poolbath1/learning_journal/subscribers","subscription_url":"https://api.github.com/repos/poolbath1/learning_journal/subscription","commits_url":"https://api.github.com/repos/poolbath1/learning_journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/poolbath1/learning_journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/poolbath1/learning_journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/poolbath1/learning_journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/poolbath1/learning_journal/contents/{+path}","compare_url":"https://api.github.com/repos/poolbath1/learning_journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poolbath1/learning_journal/merges","archive_url":"https://api.github.com/repos/poolbath1/learning_journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poolbath1/learning_journal/downloads","issues_url":"https://api.github.com/repos/poolbath1/learning_journal/issues{/number}","pulls_url":"https://api.github.com/repos/poolbath1/learning_journal/pulls{/number}","milestones_url":"https://api.github.com/repos/poolbath1/learning_journal/milestones{/number}","notifications_url":"https://api.github.com/repos/poolbath1/learning_journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poolbath1/learning_journal/labels{/name}","releases_url":"https://api.github.com/repos/poolbath1/learning_journal/releases{/id}","created_at":"2015-02-03T21:57:58Z","updated_at":"2015-02-17T03:48:01Z","pushed_at":"2015-03-31T07:23:19Z","git_url":"git://github.com/poolbath1/learning_journal.git","ssh_url":"git@github.com:poolbath1/learning_journal.git","clone_url":"https://github.com/poolbath1/learning_journal.git","svn_url":"https://github.com/poolbath1/learning_journal","homepage":null,"size":844,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"poolbath1:master","ref":"master","sha":"7e001ad2826f49b0d972597a88ad2df836e92f24","user":{"login":"poolbath1","id":3937302,"avatar_url":"https://avatars.githubusercontent.com/u/3937302?v=3","gravatar_id":"","url":"https://api.github.com/users/poolbath1","html_url":"https://github.com/poolbath1","followers_url":"https://api.github.com/users/poolbath1/followers","following_url":"https://api.github.com/users/poolbath1/following{/other_user}","gists_url":"https://api.github.com/users/poolbath1/gists{/gist_id}","starred_url":"https://api.github.com/users/poolbath1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolbath1/subscriptions","organizations_url":"https://api.github.com/users/poolbath1/orgs","repos_url":"https://api.github.com/users/poolbath1/repos","events_url":"https://api.github.com/users/poolbath1/events{/privacy}","received_events_url":"https://api.github.com/users/poolbath1/received_events","type":"User","site_admin":false},"repo":{"id":30266776,"name":"learning_journal","full_name":"poolbath1/learning_journal","owner":{"login":"poolbath1","id":3937302,"avatar_url":"https://avatars.githubusercontent.com/u/3937302?v=3","gravatar_id":"","url":"https://api.github.com/users/poolbath1","html_url":"https://github.com/poolbath1","followers_url":"https://api.github.com/users/poolbath1/followers","following_url":"https://api.github.com/users/poolbath1/following{/other_user}","gists_url":"https://api.github.com/users/poolbath1/gists{/gist_id}","starred_url":"https://api.github.com/users/poolbath1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolbath1/subscriptions","organizations_url":"https://api.github.com/users/poolbath1/orgs","repos_url":"https://api.github.com/users/poolbath1/repos","events_url":"https://api.github.com/users/poolbath1/events{/privacy}","received_events_url":"https://api.github.com/users/poolbath1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poolbath1/learning_journal","description":"A lightweight Pyramid web journal","fork":false,"url":"https://api.github.com/repos/poolbath1/learning_journal","forks_url":"https://api.github.com/repos/poolbath1/learning_journal/forks","keys_url":"https://api.github.com/repos/poolbath1/learning_journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poolbath1/learning_journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poolbath1/learning_journal/teams","hooks_url":"https://api.github.com/repos/poolbath1/learning_journal/hooks","issue_events_url":"https://api.github.com/repos/poolbath1/learning_journal/issues/events{/number}","events_url":"https://api.github.com/repos/poolbath1/learning_journal/events","assignees_url":"https://api.github.com/repos/poolbath1/learning_journal/assignees{/user}","branches_url":"https://api.github.com/repos/poolbath1/learning_journal/branches{/branch}","tags_url":"https://api.github.com/repos/poolbath1/learning_journal/tags","blobs_url":"https://api.github.com/repos/poolbath1/learning_journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poolbath1/learning_journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poolbath1/learning_journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/poolbath1/learning_journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poolbath1/learning_journal/statuses/{sha}","languages_url":"https://api.github.com/repos/poolbath1/learning_journal/languages","stargazers_url":"https://api.github.com/repos/poolbath1/learning_journal/stargazers","contributors_url":"https://api.github.com/repos/poolbath1/learning_journal/contributors","subscribers_url":"https://api.github.com/repos/poolbath1/learning_journal/subscribers","subscription_url":"https://api.github.com/repos/poolbath1/learning_journal/subscription","commits_url":"https://api.github.com/repos/poolbath1/learning_journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/poolbath1/learning_journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/poolbath1/learning_journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/poolbath1/learning_journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/poolbath1/learning_journal/contents/{+path}","compare_url":"https://api.github.com/repos/poolbath1/learning_journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poolbath1/learning_journal/merges","archive_url":"https://api.github.com/repos/poolbath1/learning_journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poolbath1/learning_journal/downloads","issues_url":"https://api.github.com/repos/poolbath1/learning_journal/issues{/number}","pulls_url":"https://api.github.com/repos/poolbath1/learning_journal/pulls{/number}","milestones_url":"https://api.github.com/repos/poolbath1/learning_journal/milestones{/number}","notifications_url":"https://api.github.com/repos/poolbath1/learning_journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poolbath1/learning_journal/labels{/name}","releases_url":"https://api.github.com/repos/poolbath1/learning_journal/releases{/id}","created_at":"2015-02-03T21:57:58Z","updated_at":"2015-02-17T03:48:01Z","pushed_at":"2015-03-31T07:23:19Z","git_url":"git://github.com/poolbath1/learning_journal.git","ssh_url":"git@github.com:poolbath1/learning_journal.git","clone_url":"https://github.com/poolbath1/learning_journal.git","svn_url":"https://github.com/poolbath1/learning_journal","homepage":null,"size":844,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/poolbath1/learning_journal/pulls/5"},"html":{"href":"https://github.com/poolbath1/learning_journal/pull/5"},"issue":{"href":"https://api.github.com/repos/poolbath1/learning_journal/issues/5"},"comments":{"href":"https://api.github.com/repos/poolbath1/learning_journal/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/poolbath1/learning_journal/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/poolbath1/learning_journal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poolbath1/learning_journal/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/poolbath1/learning_journal/statuses/a838727fcb5807c813feb1175dce9da6e614c7c4"}}}}