{"action":"created","comment":{"url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/comments/67681447","id":67681447,"diff_hunk":"@@ -0,0 +1,52 @@\n+function showResponse(resultJson, outputDiv, dataDiv){\n+\n+    var outputString = \"\";\n+    var obj = determineJson(resultJson);\n+\n+    if(obj.success){\n+\n+        $(outputDiv).addClass(\"modal-positive-result\");\n+\n+    }else {\n+\n+        $(outputDiv).addClass(\"modal-negative-result\");\n+\n+    }\n+\n+    if(obj.messages){\n+\n+        if($.isArray(obj.messages)){\n+\n+            $.each(obj.messages, function (key, value) {\n+\n+                outputString += value + \"\\n\";\n+\n+            });\n+\n+        }else{\n+            outputString += obj.messages;\n+        }\n+\n+    }\n+\n+    if($.type(dataDiv) !== \"undefined\" && dataDiv != false){","path":"js/jsonresponse.js","position":32,"original_position":32,"commit_id":"46a87081a2e59c844fb6960e9b0e476fcb67c6fe","original_commit_id":"46a87081a2e59c844fb6960e9b0e476fcb67c6fe","user":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"body":"if you check for \"!= null\", that includes null and undefined. ","created_at":"2016-06-20T12:32:38Z","updated_at":"2016-06-20T12:32:38Z","html_url":"https://github.com/DylanMeeus/ephemeral/pull/39#discussion_r67681447","pull_request_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/comments/67681447"},"html":{"href":"https://github.com/DylanMeeus/ephemeral/pull/39#discussion_r67681447"},"pull_request":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39","id":74335388,"html_url":"https://github.com/DylanMeeus/ephemeral/pull/39","diff_url":"https://github.com/DylanMeeus/ephemeral/pull/39.diff","patch_url":"https://github.com/DylanMeeus/ephemeral/pull/39.patch","issue_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/39","number":39,"state":"open","locked":false,"title":"Ajax response","user":{"login":"xcgpseud","id":1755473,"avatar_url":"https://avatars.githubusercontent.com/u/1755473?v=3","gravatar_id":"","url":"https://api.github.com/users/xcgpseud","html_url":"https://github.com/xcgpseud","followers_url":"https://api.github.com/users/xcgpseud/followers","following_url":"https://api.github.com/users/xcgpseud/following{/other_user}","gists_url":"https://api.github.com/users/xcgpseud/gists{/gist_id}","starred_url":"https://api.github.com/users/xcgpseud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcgpseud/subscriptions","organizations_url":"https://api.github.com/users/xcgpseud/orgs","repos_url":"https://api.github.com/users/xcgpseud/repos","events_url":"https://api.github.com/users/xcgpseud/events{/privacy}","received_events_url":"https://api.github.com/users/xcgpseud/received_events","type":"User","site_admin":false},"body":"Introduced a new json response standard and a method / jquery functions to support it.\r\n\r\nthis PR connects to #38 ","created_at":"2016-06-18T12:02:50Z","updated_at":"2016-06-20T12:32:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db6f80cd7220f3307da7ac921601c7b1eb331468","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39/commits","review_comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39/comments","review_comment_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/39/comments","statuses_url":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/46a87081a2e59c844fb6960e9b0e476fcb67c6fe","head":{"label":"DylanMeeus:AjaxResponse","ref":"AjaxResponse","sha":"46a87081a2e59c844fb6960e9b0e476fcb67c6fe","user":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"repo":{"id":58781329,"name":"ephemeral","full_name":"DylanMeeus/ephemeral","owner":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DylanMeeus/ephemeral","description":"","fork":false,"url":"https://api.github.com/repos/DylanMeeus/ephemeral","forks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/forks","keys_url":"https://api.github.com/repos/DylanMeeus/ephemeral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DylanMeeus/ephemeral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DylanMeeus/ephemeral/teams","hooks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/hooks","issue_events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/events{/number}","events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/events","assignees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/assignees{/user}","branches_url":"https://api.github.com/repos/DylanMeeus/ephemeral/branches{/branch}","tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/tags","blobs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/refs{/sha}","trees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/{sha}","languages_url":"https://api.github.com/repos/DylanMeeus/ephemeral/languages","stargazers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/stargazers","contributors_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contributors","subscribers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscribers","subscription_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscription","commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/commits{/sha}","git_commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/commits{/sha}","comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/comments{/number}","issue_comment_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/comments{/number}","contents_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contents/{+path}","compare_url":"https://api.github.com/repos/DylanMeeus/ephemeral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DylanMeeus/ephemeral/merges","archive_url":"https://api.github.com/repos/DylanMeeus/ephemeral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DylanMeeus/ephemeral/downloads","issues_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues{/number}","pulls_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls{/number}","milestones_url":"https://api.github.com/repos/DylanMeeus/ephemeral/milestones{/number}","notifications_url":"https://api.github.com/repos/DylanMeeus/ephemeral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DylanMeeus/ephemeral/labels{/name}","releases_url":"https://api.github.com/repos/DylanMeeus/ephemeral/releases{/id}","deployments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/deployments","created_at":"2016-05-14T00:23:07Z","updated_at":"2016-05-14T01:08:11Z","pushed_at":"2016-06-18T12:02:51Z","git_url":"git://github.com/DylanMeeus/ephemeral.git","ssh_url":"git@github.com:DylanMeeus/ephemeral.git","clone_url":"https://github.com/DylanMeeus/ephemeral.git","svn_url":"https://github.com/DylanMeeus/ephemeral","homepage":null,"size":2912,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"DylanMeeus:master","ref":"master","sha":"a0f03e122edd92261032cab6d7daf2fc8893d74d","user":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"repo":{"id":58781329,"name":"ephemeral","full_name":"DylanMeeus/ephemeral","owner":{"login":"DylanMeeus","id":2179051,"avatar_url":"https://avatars.githubusercontent.com/u/2179051?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanMeeus","html_url":"https://github.com/DylanMeeus","followers_url":"https://api.github.com/users/DylanMeeus/followers","following_url":"https://api.github.com/users/DylanMeeus/following{/other_user}","gists_url":"https://api.github.com/users/DylanMeeus/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanMeeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanMeeus/subscriptions","organizations_url":"https://api.github.com/users/DylanMeeus/orgs","repos_url":"https://api.github.com/users/DylanMeeus/repos","events_url":"https://api.github.com/users/DylanMeeus/events{/privacy}","received_events_url":"https://api.github.com/users/DylanMeeus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DylanMeeus/ephemeral","description":"","fork":false,"url":"https://api.github.com/repos/DylanMeeus/ephemeral","forks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/forks","keys_url":"https://api.github.com/repos/DylanMeeus/ephemeral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DylanMeeus/ephemeral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DylanMeeus/ephemeral/teams","hooks_url":"https://api.github.com/repos/DylanMeeus/ephemeral/hooks","issue_events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/events{/number}","events_url":"https://api.github.com/repos/DylanMeeus/ephemeral/events","assignees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/assignees{/user}","branches_url":"https://api.github.com/repos/DylanMeeus/ephemeral/branches{/branch}","tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/tags","blobs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/refs{/sha}","trees_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/{sha}","languages_url":"https://api.github.com/repos/DylanMeeus/ephemeral/languages","stargazers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/stargazers","contributors_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contributors","subscribers_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscribers","subscription_url":"https://api.github.com/repos/DylanMeeus/ephemeral/subscription","commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/commits{/sha}","git_commits_url":"https://api.github.com/repos/DylanMeeus/ephemeral/git/commits{/sha}","comments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/comments{/number}","issue_comment_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/comments{/number}","contents_url":"https://api.github.com/repos/DylanMeeus/ephemeral/contents/{+path}","compare_url":"https://api.github.com/repos/DylanMeeus/ephemeral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DylanMeeus/ephemeral/merges","archive_url":"https://api.github.com/repos/DylanMeeus/ephemeral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DylanMeeus/ephemeral/downloads","issues_url":"https://api.github.com/repos/DylanMeeus/ephemeral/issues{/number}","pulls_url":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls{/number}","milestones_url":"https://api.github.com/repos/DylanMeeus/ephemeral/milestones{/number}","notifications_url":"https://api.github.com/repos/DylanMeeus/ephemeral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DylanMeeus/ephemeral/labels{/name}","releases_url":"https://api.github.com/repos/DylanMeeus/ephemeral/releases{/id}","deployments_url":"https://api.github.com/repos/DylanMeeus/ephemeral/deployments","created_at":"2016-05-14T00:23:07Z","updated_at":"2016-05-14T01:08:11Z","pushed_at":"2016-06-18T12:02:51Z","git_url":"git://github.com/DylanMeeus/ephemeral.git","ssh_url":"git@github.com:DylanMeeus/ephemeral.git","clone_url":"https://github.com/DylanMeeus/ephemeral.git","svn_url":"https://github.com/DylanMeeus/ephemeral","homepage":null,"size":2912,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39"},"html":{"href":"https://github.com/DylanMeeus/ephemeral/pull/39"},"issue":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/39"},"comments":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/DylanMeeus/ephemeral/statuses/46a87081a2e59c844fb6960e9b0e476fcb67c6fe"}}}}
{"actor":{"display_login":"DylanMeeus"}}