{"action":"created","comment":{"url":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/comments/23186715","id":23186715,"diff_hunk":"@@ -0,0 +1,41 @@\n+ReviewSite.components = ReviewSite.components || {};\n+\n+var showNestedFormOnPageLoad = function() {\n+  if ($(\"#isac\").length && $(\"#isac\")[0].checked) {\n+    $(\".nested-form-container\").show();\n+    enableGraduatedCheckbox();\n+  } else {\n+    $(\".nested-form-container\").hide();\n+  }\n+};\n+\n+var showNestedFormOnChange = function() {\n+  $(\"#isac\").on(\"change\", function() {\n+    $(\".nested-form-container\").toggle();\n+\n+    if ($(\"#isac\").length && $(\"#isac\")[0].checked) {\n+      enableGraduatedCheckbox();\n+    } else {\n+      disableGraduatedCheckbox();\n+    }\n+  });\n+};\n+\n+var enableGraduatedCheckbox = function() {\n+  $(\"#user_associate_consultant_attributes_graduated\").removeAttr(\"disabled\");\n+\n+  $(\"[name='user[associate_consultant_attributes][graduated]'][type='hidden']\").removeAttr(\"disabled\");\n+};\n+\n+var disableGraduatedCheckbox = function() {\n+  $(\"#user_associate_consultant_attributes_graduated\")\n+      .attr(\"disabled\", \"disabled\");\n+\n+  $(\"[name='user[associate_consultant_attributes][graduated]'][type='hidden']\").attr(\"disabled\", \"disabled\");\n+};\n+\n+\n+ReviewSite.components.ac = function() {\n+  showNestedFormOnPageLoad();\n+  showNestedFormOnChange();\n+}","path":"app/assets/javascripts/components/ac.js","position":41,"original_position":41,"commit_id":"65cedbdf6ddc4263bab8ac70850d989fdb2252b6","original_commit_id":"65cedbdf6ddc4263bab8ac70850d989fdb2252b6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Missing semicolon.","created_at":"2015-01-19T21:02:31Z","updated_at":"2015-01-19T21:02:31Z","html_url":"https://github.com/ReviewSite/ReviewSite/pull/136#discussion_r23186715","pull_request_url":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136","_links":{"self":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/comments/23186715"},"html":{"href":"https://github.com/ReviewSite/ReviewSite/pull/136#discussion_r23186715"},"pull_request":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136"}}},"pull_request":{"url":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136","id":27623565,"html_url":"https://github.com/ReviewSite/ReviewSite/pull/136","diff_url":"https://github.com/ReviewSite/ReviewSite/pull/136.diff","patch_url":"https://github.com/ReviewSite/ReviewSite/pull/136.patch","issue_url":"https://api.github.com/repos/ReviewSite/ReviewSite/issues/136","number":136,"state":"open","locked":false,"title":"Jasmine","user":{"login":"valerie-roske","id":2559244,"avatar_url":"https://avatars.githubusercontent.com/u/2559244?v=3","gravatar_id":"","url":"https://api.github.com/users/valerie-roske","html_url":"https://github.com/valerie-roske","followers_url":"https://api.github.com/users/valerie-roske/followers","following_url":"https://api.github.com/users/valerie-roske/following{/other_user}","gists_url":"https://api.github.com/users/valerie-roske/gists{/gist_id}","starred_url":"https://api.github.com/users/valerie-roske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerie-roske/subscriptions","organizations_url":"https://api.github.com/users/valerie-roske/orgs","repos_url":"https://api.github.com/users/valerie-roske/repos","events_url":"https://api.github.com/users/valerie-roske/events{/privacy}","received_events_url":"https://api.github.com/users/valerie-roske/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-19T17:37:51Z","updated_at":"2015-01-19T21:02:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46c42da83a981a80ff6873697a9d65c22ab50bb4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136/commits","review_comments_url":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136/comments","review_comment_url":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ReviewSite/ReviewSite/issues/136/comments","statuses_url":"https://api.github.com/repos/ReviewSite/ReviewSite/statuses/65cedbdf6ddc4263bab8ac70850d989fdb2252b6","head":{"label":"valerie-roske:jasmine","ref":"jasmine","sha":"65cedbdf6ddc4263bab8ac70850d989fdb2252b6","user":{"login":"valerie-roske","id":2559244,"avatar_url":"https://avatars.githubusercontent.com/u/2559244?v=3","gravatar_id":"","url":"https://api.github.com/users/valerie-roske","html_url":"https://github.com/valerie-roske","followers_url":"https://api.github.com/users/valerie-roske/followers","following_url":"https://api.github.com/users/valerie-roske/following{/other_user}","gists_url":"https://api.github.com/users/valerie-roske/gists{/gist_id}","starred_url":"https://api.github.com/users/valerie-roske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerie-roske/subscriptions","organizations_url":"https://api.github.com/users/valerie-roske/orgs","repos_url":"https://api.github.com/users/valerie-roske/repos","events_url":"https://api.github.com/users/valerie-roske/events{/privacy}","received_events_url":"https://api.github.com/users/valerie-roske/received_events","type":"User","site_admin":false},"repo":{"id":20112606,"name":"ReviewSite","full_name":"valerie-roske/ReviewSite","owner":{"login":"valerie-roske","id":2559244,"avatar_url":"https://avatars.githubusercontent.com/u/2559244?v=3","gravatar_id":"","url":"https://api.github.com/users/valerie-roske","html_url":"https://github.com/valerie-roske","followers_url":"https://api.github.com/users/valerie-roske/followers","following_url":"https://api.github.com/users/valerie-roske/following{/other_user}","gists_url":"https://api.github.com/users/valerie-roske/gists{/gist_id}","starred_url":"https://api.github.com/users/valerie-roske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerie-roske/subscriptions","organizations_url":"https://api.github.com/users/valerie-roske/orgs","repos_url":"https://api.github.com/users/valerie-roske/repos","events_url":"https://api.github.com/users/valerie-roske/events{/privacy}","received_events_url":"https://api.github.com/users/valerie-roske/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valerie-roske/ReviewSite","description":"Rails app to track reviews for Associate Consultants","fork":true,"url":"https://api.github.com/repos/valerie-roske/ReviewSite","forks_url":"https://api.github.com/repos/valerie-roske/ReviewSite/forks","keys_url":"https://api.github.com/repos/valerie-roske/ReviewSite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valerie-roske/ReviewSite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valerie-roske/ReviewSite/teams","hooks_url":"https://api.github.com/repos/valerie-roske/ReviewSite/hooks","issue_events_url":"https://api.github.com/repos/valerie-roske/ReviewSite/issues/events{/number}","events_url":"https://api.github.com/repos/valerie-roske/ReviewSite/events","assignees_url":"https://api.github.com/repos/valerie-roske/ReviewSite/assignees{/user}","branches_url":"https://api.github.com/repos/valerie-roske/ReviewSite/branches{/branch}","tags_url":"https://api.github.com/repos/valerie-roske/ReviewSite/tags","blobs_url":"https://api.github.com/repos/valerie-roske/ReviewSite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valerie-roske/ReviewSite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valerie-roske/ReviewSite/git/refs{/sha}","trees_url":"https://api.github.com/repos/valerie-roske/ReviewSite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valerie-roske/ReviewSite/statuses/{sha}","languages_url":"https://api.github.com/repos/valerie-roske/ReviewSite/languages","stargazers_url":"https://api.github.com/repos/valerie-roske/ReviewSite/stargazers","contributors_url":"https://api.github.com/repos/valerie-roske/ReviewSite/contributors","subscribers_url":"https://api.github.com/repos/valerie-roske/ReviewSite/subscribers","subscription_url":"https://api.github.com/repos/valerie-roske/ReviewSite/subscription","commits_url":"https://api.github.com/repos/valerie-roske/ReviewSite/commits{/sha}","git_commits_url":"https://api.github.com/repos/valerie-roske/ReviewSite/git/commits{/sha}","comments_url":"https://api.github.com/repos/valerie-roske/ReviewSite/comments{/number}","issue_comment_url":"https://api.github.com/repos/valerie-roske/ReviewSite/issues/comments/{number}","contents_url":"https://api.github.com/repos/valerie-roske/ReviewSite/contents/{+path}","compare_url":"https://api.github.com/repos/valerie-roske/ReviewSite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valerie-roske/ReviewSite/merges","archive_url":"https://api.github.com/repos/valerie-roske/ReviewSite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valerie-roske/ReviewSite/downloads","issues_url":"https://api.github.com/repos/valerie-roske/ReviewSite/issues{/number}","pulls_url":"https://api.github.com/repos/valerie-roske/ReviewSite/pulls{/number}","milestones_url":"https://api.github.com/repos/valerie-roske/ReviewSite/milestones{/number}","notifications_url":"https://api.github.com/repos/valerie-roske/ReviewSite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valerie-roske/ReviewSite/labels{/name}","releases_url":"https://api.github.com/repos/valerie-roske/ReviewSite/releases{/id}","created_at":"2014-05-23T20:10:20Z","updated_at":"2015-01-17T20:35:00Z","pushed_at":"2015-01-19T21:02:17Z","git_url":"git://github.com/valerie-roske/ReviewSite.git","ssh_url":"git@github.com:valerie-roske/ReviewSite.git","clone_url":"https://github.com/valerie-roske/ReviewSite.git","svn_url":"https://github.com/valerie-roske/ReviewSite","homepage":"","size":9776,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"ReviewSite:master","ref":"master","sha":"6a894d8d58319e87036cc09aca078646ce52a181","user":{"login":"ReviewSite","id":3036902,"avatar_url":"https://avatars.githubusercontent.com/u/3036902?v=3","gravatar_id":"","url":"https://api.github.com/users/ReviewSite","html_url":"https://github.com/ReviewSite","followers_url":"https://api.github.com/users/ReviewSite/followers","following_url":"https://api.github.com/users/ReviewSite/following{/other_user}","gists_url":"https://api.github.com/users/ReviewSite/gists{/gist_id}","starred_url":"https://api.github.com/users/ReviewSite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReviewSite/subscriptions","organizations_url":"https://api.github.com/users/ReviewSite/orgs","repos_url":"https://api.github.com/users/ReviewSite/repos","events_url":"https://api.github.com/users/ReviewSite/events{/privacy}","received_events_url":"https://api.github.com/users/ReviewSite/received_events","type":"Organization","site_admin":false},"repo":{"id":8145895,"name":"ReviewSite","full_name":"ReviewSite/ReviewSite","owner":{"login":"ReviewSite","id":3036902,"avatar_url":"https://avatars.githubusercontent.com/u/3036902?v=3","gravatar_id":"","url":"https://api.github.com/users/ReviewSite","html_url":"https://github.com/ReviewSite","followers_url":"https://api.github.com/users/ReviewSite/followers","following_url":"https://api.github.com/users/ReviewSite/following{/other_user}","gists_url":"https://api.github.com/users/ReviewSite/gists{/gist_id}","starred_url":"https://api.github.com/users/ReviewSite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReviewSite/subscriptions","organizations_url":"https://api.github.com/users/ReviewSite/orgs","repos_url":"https://api.github.com/users/ReviewSite/repos","events_url":"https://api.github.com/users/ReviewSite/events{/privacy}","received_events_url":"https://api.github.com/users/ReviewSite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ReviewSite/ReviewSite","description":"Rails app to track reviews for Associate Consultants","fork":false,"url":"https://api.github.com/repos/ReviewSite/ReviewSite","forks_url":"https://api.github.com/repos/ReviewSite/ReviewSite/forks","keys_url":"https://api.github.com/repos/ReviewSite/ReviewSite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ReviewSite/ReviewSite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ReviewSite/ReviewSite/teams","hooks_url":"https://api.github.com/repos/ReviewSite/ReviewSite/hooks","issue_events_url":"https://api.github.com/repos/ReviewSite/ReviewSite/issues/events{/number}","events_url":"https://api.github.com/repos/ReviewSite/ReviewSite/events","assignees_url":"https://api.github.com/repos/ReviewSite/ReviewSite/assignees{/user}","branches_url":"https://api.github.com/repos/ReviewSite/ReviewSite/branches{/branch}","tags_url":"https://api.github.com/repos/ReviewSite/ReviewSite/tags","blobs_url":"https://api.github.com/repos/ReviewSite/ReviewSite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ReviewSite/ReviewSite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ReviewSite/ReviewSite/git/refs{/sha}","trees_url":"https://api.github.com/repos/ReviewSite/ReviewSite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ReviewSite/ReviewSite/statuses/{sha}","languages_url":"https://api.github.com/repos/ReviewSite/ReviewSite/languages","stargazers_url":"https://api.github.com/repos/ReviewSite/ReviewSite/stargazers","contributors_url":"https://api.github.com/repos/ReviewSite/ReviewSite/contributors","subscribers_url":"https://api.github.com/repos/ReviewSite/ReviewSite/subscribers","subscription_url":"https://api.github.com/repos/ReviewSite/ReviewSite/subscription","commits_url":"https://api.github.com/repos/ReviewSite/ReviewSite/commits{/sha}","git_commits_url":"https://api.github.com/repos/ReviewSite/ReviewSite/git/commits{/sha}","comments_url":"https://api.github.com/repos/ReviewSite/ReviewSite/comments{/number}","issue_comment_url":"https://api.github.com/repos/ReviewSite/ReviewSite/issues/comments/{number}","contents_url":"https://api.github.com/repos/ReviewSite/ReviewSite/contents/{+path}","compare_url":"https://api.github.com/repos/ReviewSite/ReviewSite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ReviewSite/ReviewSite/merges","archive_url":"https://api.github.com/repos/ReviewSite/ReviewSite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ReviewSite/ReviewSite/downloads","issues_url":"https://api.github.com/repos/ReviewSite/ReviewSite/issues{/number}","pulls_url":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls{/number}","milestones_url":"https://api.github.com/repos/ReviewSite/ReviewSite/milestones{/number}","notifications_url":"https://api.github.com/repos/ReviewSite/ReviewSite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ReviewSite/ReviewSite/labels{/name}","releases_url":"https://api.github.com/repos/ReviewSite/ReviewSite/releases{/id}","created_at":"2013-02-11T20:28:38Z","updated_at":"2015-01-13T22:45:54Z","pushed_at":"2015-01-13T22:45:54Z","git_url":"git://github.com/ReviewSite/ReviewSite.git","ssh_url":"git@github.com:ReviewSite/ReviewSite.git","clone_url":"https://github.com/ReviewSite/ReviewSite.git","svn_url":"https://github.com/ReviewSite/ReviewSite","homepage":"","size":11808,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":1,"forks":15,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136"},"html":{"href":"https://github.com/ReviewSite/ReviewSite/pull/136"},"issue":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/issues/136"},"comments":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/issues/136/comments"},"review_comments":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136/comments"},"review_comment":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/pulls/136/commits"},"statuses":{"href":"https://api.github.com/repos/ReviewSite/ReviewSite/statuses/65cedbdf6ddc4263bab8ac70850d989fdb2252b6"}}}}