{"action":"created","comment":{"url":"https://api.github.com/repos/openeyes/OpenEyes/pulls/comments/111130999","pull_request_review_id":32353109,"id":111130999,"diff_hunk":"@@ -0,0 +1,62 @@\n+var OpenEyes = OpenEyes || {};\n+\n+OpenEyes.OphCiExamination = OpenEyes.OphCiExamination || {};\n+\n+OpenEyes.OphCiExamination.MedicalLidsController = (function () {\n+  function MedicalLidsController(_drawing, options)\n+  {\n+    this.drawing = _drawing;\n+    this.options = $.extend(true, {}, MedicalLidsController._defaultOptions, options);\n+    this.initialise();\n+  }\n+\n+  MedicalLidsController.prototype.initialise = function()\n+  {\n+    this.drawing.registerForNotifications(this, 'drawingNotifications');\n+    this.$edReportField = $('#OEModule_OphCiExamination_models_MedicalLids_' + this.options.side + '_ed_report');\n+    this.$edReportDisplay = $('#OEModule_OphCiExamination_models_MedicalLids_'+this.options.side+'_ed_report_display');\n+    this.updateReport();\n+  };\n+\n+  MedicalLidsController.prototype.updateReport = function()\n+  {\n+    this.$edReportDisplay.html(this.$edReportField.val().replace(/\\n/g,'<br />'));\n+  };\n+\n+  MedicalLidsController.prototype.checkSTFB = function()\n+  {\n+    if (this.drawing.hasDoodleOfClass('STFB')) {\n+      $('#OEModule_OphCiExamination_models_MedicalLids_' + this.options.side + '_stfb')\n+        .prop('checked', false)\n+        .prop('disabled', true);\n+    } else {\n+      $('#OEModule_OphCiExamination_models_MedicalLids_' + this.options.side + '_stfb')\n+        .prop('disabled', false);\n+    }\n+  };\n+\n+  MedicalLidsController.prototype.drawingNotifications = function(msgArray)\n+  {\n+    if ($.inArray(msgArray['eventName'], ['doodleAdded', 'doodleRemoved'])) {\n+      this.checkSTFB();\n+    }\n+    this.updateReport();\n+  };\n+\n+  return MedicalLidsController;\n+})();\n+\n+function medicalLidsListener(_drawing)\n+{\n+  var canvas = $(_drawing.canvas);\n+  console.log('here');","path":"protected/modules/OphCiExamination/assets/js/MedicalLids.js","position":52,"original_position":52,"commit_id":"1ee3711ad7392c64fe13883878018054746825cc","original_commit_id":"1ee3711ad7392c64fe13883878018054746825cc","user":{"login":"splatEric","id":2445288,"avatar_url":"https://avatars2.githubusercontent.com/u/2445288?v=3","gravatar_id":"","url":"https://api.github.com/users/splatEric","html_url":"https://github.com/splatEric","followers_url":"https://api.github.com/users/splatEric/followers","following_url":"https://api.github.com/users/splatEric/following{/other_user}","gists_url":"https://api.github.com/users/splatEric/gists{/gist_id}","starred_url":"https://api.github.com/users/splatEric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splatEric/subscriptions","organizations_url":"https://api.github.com/users/splatEric/orgs","repos_url":"https://api.github.com/users/splatEric/repos","events_url":"https://api.github.com/users/splatEric/events{/privacy}","received_events_url":"https://api.github.com/users/splatEric/received_events","type":"User","site_admin":false},"body":"Please remove extraneous console logging","created_at":"2017-04-12T12:05:03Z","updated_at":"2017-04-12T12:05:03Z","html_url":"https://github.com/openeyes/OpenEyes/pull/803#discussion_r111130999","pull_request_url":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803","_links":{"self":{"href":"https://api.github.com/repos/openeyes/OpenEyes/pulls/comments/111130999"},"html":{"href":"https://github.com/openeyes/OpenEyes/pull/803#discussion_r111130999"},"pull_request":{"href":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803"}}},"pull_request":{"url":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803","id":115491338,"html_url":"https://github.com/openeyes/OpenEyes/pull/803","diff_url":"https://github.com/openeyes/OpenEyes/pull/803.diff","patch_url":"https://github.com/openeyes/OpenEyes/pull/803.patch","issue_url":"https://api.github.com/repos/openeyes/OpenEyes/issues/803","number":803,"state":"open","locked":false,"title":"OE-6460 - Lids Medical Eyedraw element","user":{"login":"edgaaar8","id":25955954,"avatar_url":"https://avatars3.githubusercontent.com/u/25955954?v=3","gravatar_id":"","url":"https://api.github.com/users/edgaaar8","html_url":"https://github.com/edgaaar8","followers_url":"https://api.github.com/users/edgaaar8/followers","following_url":"https://api.github.com/users/edgaaar8/following{/other_user}","gists_url":"https://api.github.com/users/edgaaar8/gists{/gist_id}","starred_url":"https://api.github.com/users/edgaaar8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgaaar8/subscriptions","organizations_url":"https://api.github.com/users/edgaaar8/orgs","repos_url":"https://api.github.com/users/edgaaar8/repos","events_url":"https://api.github.com/users/edgaaar8/events{/privacy}","received_events_url":"https://api.github.com/users/edgaaar8/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-12T08:44:54Z","updated_at":"2017-04-12T12:05:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04b5b3a3ae2d0a6b058c8aadf6bb1e7678fac7b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803/commits","review_comments_url":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803/comments","review_comment_url":"https://api.github.com/repos/openeyes/OpenEyes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openeyes/OpenEyes/issues/803/comments","statuses_url":"https://api.github.com/repos/openeyes/OpenEyes/statuses/1ee3711ad7392c64fe13883878018054746825cc","head":{"label":"openeyes:feature/OE-6460","ref":"feature/OE-6460","sha":"1ee3711ad7392c64fe13883878018054746825cc","user":{"login":"openeyes","id":551706,"avatar_url":"https://avatars3.githubusercontent.com/u/551706?v=3","gravatar_id":"","url":"https://api.github.com/users/openeyes","html_url":"https://github.com/openeyes","followers_url":"https://api.github.com/users/openeyes/followers","following_url":"https://api.github.com/users/openeyes/following{/other_user}","gists_url":"https://api.github.com/users/openeyes/gists{/gist_id}","starred_url":"https://api.github.com/users/openeyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openeyes/subscriptions","organizations_url":"https://api.github.com/users/openeyes/orgs","repos_url":"https://api.github.com/users/openeyes/repos","events_url":"https://api.github.com/users/openeyes/events{/privacy}","received_events_url":"https://api.github.com/users/openeyes/received_events","type":"Organization","site_admin":false},"repo":{"id":1237874,"name":"OpenEyes","full_name":"openeyes/OpenEyes","owner":{"login":"openeyes","id":551706,"avatar_url":"https://avatars3.githubusercontent.com/u/551706?v=3","gravatar_id":"","url":"https://api.github.com/users/openeyes","html_url":"https://github.com/openeyes","followers_url":"https://api.github.com/users/openeyes/followers","following_url":"https://api.github.com/users/openeyes/following{/other_user}","gists_url":"https://api.github.com/users/openeyes/gists{/gist_id}","starred_url":"https://api.github.com/users/openeyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openeyes/subscriptions","organizations_url":"https://api.github.com/users/openeyes/orgs","repos_url":"https://api.github.com/users/openeyes/repos","events_url":"https://api.github.com/users/openeyes/events{/privacy}","received_events_url":"https://api.github.com/users/openeyes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openeyes/OpenEyes","description":"An Open Source electronic patient record system","fork":false,"url":"https://api.github.com/repos/openeyes/OpenEyes","forks_url":"https://api.github.com/repos/openeyes/OpenEyes/forks","keys_url":"https://api.github.com/repos/openeyes/OpenEyes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openeyes/OpenEyes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openeyes/OpenEyes/teams","hooks_url":"https://api.github.com/repos/openeyes/OpenEyes/hooks","issue_events_url":"https://api.github.com/repos/openeyes/OpenEyes/issues/events{/number}","events_url":"https://api.github.com/repos/openeyes/OpenEyes/events","assignees_url":"https://api.github.com/repos/openeyes/OpenEyes/assignees{/user}","branches_url":"https://api.github.com/repos/openeyes/OpenEyes/branches{/branch}","tags_url":"https://api.github.com/repos/openeyes/OpenEyes/tags","blobs_url":"https://api.github.com/repos/openeyes/OpenEyes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openeyes/OpenEyes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openeyes/OpenEyes/git/refs{/sha}","trees_url":"https://api.github.com/repos/openeyes/OpenEyes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openeyes/OpenEyes/statuses/{sha}","languages_url":"https://api.github.com/repos/openeyes/OpenEyes/languages","stargazers_url":"https://api.github.com/repos/openeyes/OpenEyes/stargazers","contributors_url":"https://api.github.com/repos/openeyes/OpenEyes/contributors","subscribers_url":"https://api.github.com/repos/openeyes/OpenEyes/subscribers","subscription_url":"https://api.github.com/repos/openeyes/OpenEyes/subscription","commits_url":"https://api.github.com/repos/openeyes/OpenEyes/commits{/sha}","git_commits_url":"https://api.github.com/repos/openeyes/OpenEyes/git/commits{/sha}","comments_url":"https://api.github.com/repos/openeyes/OpenEyes/comments{/number}","issue_comment_url":"https://api.github.com/repos/openeyes/OpenEyes/issues/comments{/number}","contents_url":"https://api.github.com/repos/openeyes/OpenEyes/contents/{+path}","compare_url":"https://api.github.com/repos/openeyes/OpenEyes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openeyes/OpenEyes/merges","archive_url":"https://api.github.com/repos/openeyes/OpenEyes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openeyes/OpenEyes/downloads","issues_url":"https://api.github.com/repos/openeyes/OpenEyes/issues{/number}","pulls_url":"https://api.github.com/repos/openeyes/OpenEyes/pulls{/number}","milestones_url":"https://api.github.com/repos/openeyes/OpenEyes/milestones{/number}","notifications_url":"https://api.github.com/repos/openeyes/OpenEyes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openeyes/OpenEyes/labels{/name}","releases_url":"https://api.github.com/repos/openeyes/OpenEyes/releases{/id}","deployments_url":"https://api.github.com/repos/openeyes/OpenEyes/deployments","created_at":"2011-01-10T13:01:07Z","updated_at":"2017-03-29T17:24:00Z","pushed_at":"2017-04-12T11:19:20Z","git_url":"git://github.com/openeyes/OpenEyes.git","ssh_url":"git@github.com:openeyes/OpenEyes.git","clone_url":"https://github.com/openeyes/OpenEyes.git","svn_url":"https://github.com/openeyes/OpenEyes","homepage":"http://www.openeyes.org.uk/","size":85190,"stargazers_count":99,"watchers_count":99,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":7,"forks":52,"open_issues":7,"watchers":99,"default_branch":"master"}},"base":{"label":"openeyes:feature/redesign","ref":"feature/redesign","sha":"a7c092bc79f508458ce7bac6d5c24590803cad8b","user":{"login":"openeyes","id":551706,"avatar_url":"https://avatars3.githubusercontent.com/u/551706?v=3","gravatar_id":"","url":"https://api.github.com/users/openeyes","html_url":"https://github.com/openeyes","followers_url":"https://api.github.com/users/openeyes/followers","following_url":"https://api.github.com/users/openeyes/following{/other_user}","gists_url":"https://api.github.com/users/openeyes/gists{/gist_id}","starred_url":"https://api.github.com/users/openeyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openeyes/subscriptions","organizations_url":"https://api.github.com/users/openeyes/orgs","repos_url":"https://api.github.com/users/openeyes/repos","events_url":"https://api.github.com/users/openeyes/events{/privacy}","received_events_url":"https://api.github.com/users/openeyes/received_events","type":"Organization","site_admin":false},"repo":{"id":1237874,"name":"OpenEyes","full_name":"openeyes/OpenEyes","owner":{"login":"openeyes","id":551706,"avatar_url":"https://avatars3.githubusercontent.com/u/551706?v=3","gravatar_id":"","url":"https://api.github.com/users/openeyes","html_url":"https://github.com/openeyes","followers_url":"https://api.github.com/users/openeyes/followers","following_url":"https://api.github.com/users/openeyes/following{/other_user}","gists_url":"https://api.github.com/users/openeyes/gists{/gist_id}","starred_url":"https://api.github.com/users/openeyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openeyes/subscriptions","organizations_url":"https://api.github.com/users/openeyes/orgs","repos_url":"https://api.github.com/users/openeyes/repos","events_url":"https://api.github.com/users/openeyes/events{/privacy}","received_events_url":"https://api.github.com/users/openeyes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openeyes/OpenEyes","description":"An Open Source electronic patient record system","fork":false,"url":"https://api.github.com/repos/openeyes/OpenEyes","forks_url":"https://api.github.com/repos/openeyes/OpenEyes/forks","keys_url":"https://api.github.com/repos/openeyes/OpenEyes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openeyes/OpenEyes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openeyes/OpenEyes/teams","hooks_url":"https://api.github.com/repos/openeyes/OpenEyes/hooks","issue_events_url":"https://api.github.com/repos/openeyes/OpenEyes/issues/events{/number}","events_url":"https://api.github.com/repos/openeyes/OpenEyes/events","assignees_url":"https://api.github.com/repos/openeyes/OpenEyes/assignees{/user}","branches_url":"https://api.github.com/repos/openeyes/OpenEyes/branches{/branch}","tags_url":"https://api.github.com/repos/openeyes/OpenEyes/tags","blobs_url":"https://api.github.com/repos/openeyes/OpenEyes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openeyes/OpenEyes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openeyes/OpenEyes/git/refs{/sha}","trees_url":"https://api.github.com/repos/openeyes/OpenEyes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openeyes/OpenEyes/statuses/{sha}","languages_url":"https://api.github.com/repos/openeyes/OpenEyes/languages","stargazers_url":"https://api.github.com/repos/openeyes/OpenEyes/stargazers","contributors_url":"https://api.github.com/repos/openeyes/OpenEyes/contributors","subscribers_url":"https://api.github.com/repos/openeyes/OpenEyes/subscribers","subscription_url":"https://api.github.com/repos/openeyes/OpenEyes/subscription","commits_url":"https://api.github.com/repos/openeyes/OpenEyes/commits{/sha}","git_commits_url":"https://api.github.com/repos/openeyes/OpenEyes/git/commits{/sha}","comments_url":"https://api.github.com/repos/openeyes/OpenEyes/comments{/number}","issue_comment_url":"https://api.github.com/repos/openeyes/OpenEyes/issues/comments{/number}","contents_url":"https://api.github.com/repos/openeyes/OpenEyes/contents/{+path}","compare_url":"https://api.github.com/repos/openeyes/OpenEyes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openeyes/OpenEyes/merges","archive_url":"https://api.github.com/repos/openeyes/OpenEyes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openeyes/OpenEyes/downloads","issues_url":"https://api.github.com/repos/openeyes/OpenEyes/issues{/number}","pulls_url":"https://api.github.com/repos/openeyes/OpenEyes/pulls{/number}","milestones_url":"https://api.github.com/repos/openeyes/OpenEyes/milestones{/number}","notifications_url":"https://api.github.com/repos/openeyes/OpenEyes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openeyes/OpenEyes/labels{/name}","releases_url":"https://api.github.com/repos/openeyes/OpenEyes/releases{/id}","deployments_url":"https://api.github.com/repos/openeyes/OpenEyes/deployments","created_at":"2011-01-10T13:01:07Z","updated_at":"2017-03-29T17:24:00Z","pushed_at":"2017-04-12T11:19:20Z","git_url":"git://github.com/openeyes/OpenEyes.git","ssh_url":"git@github.com:openeyes/OpenEyes.git","clone_url":"https://github.com/openeyes/OpenEyes.git","svn_url":"https://github.com/openeyes/OpenEyes","homepage":"http://www.openeyes.org.uk/","size":85190,"stargazers_count":99,"watchers_count":99,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":7,"forks":52,"open_issues":7,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803"},"html":{"href":"https://github.com/openeyes/OpenEyes/pull/803"},"issue":{"href":"https://api.github.com/repos/openeyes/OpenEyes/issues/803"},"comments":{"href":"https://api.github.com/repos/openeyes/OpenEyes/issues/803/comments"},"review_comments":{"href":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803/comments"},"review_comment":{"href":"https://api.github.com/repos/openeyes/OpenEyes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openeyes/OpenEyes/pulls/803/commits"},"statuses":{"href":"https://api.github.com/repos/openeyes/OpenEyes/statuses/1ee3711ad7392c64fe13883878018054746825cc"}}}}
{"actor":{"display_login":"splatEric"}}