{"action":"created","comment":{"url":"https://api.github.com/repos/lukechurch/coda/pulls/comments/142223511","pull_request_review_id":66550685,"id":142223511,"diff_hunk":"@@ -849,6 +752,64 @@ function initUI(dataset) {\n         $(\"#scheme-upload-file\")[0].value = \"\"; // need to reset so same file can be reloaded ie caught by 'onchange' listener\n     });\n \n+    $(\"#quit\").on(\"click\", () => {\n+        storage.saveDataset(newDataset);\n+\n+        // todo: prompt to export all files with dialog box\n+\n+        chrome.tabs.getCurrent(tab => {\n+            chrome.tabs.remove(tab.id);\n+        });\n+\n+    });\n+\n+    $(\"#scheme-download\").on(\"click\", () => FileUtils.saveCodeScheme(tempScheme));\n+\n+    /*\n+    TOOLTIPS","path":"coda-prototype/initUI.js","position":328,"original_position":328,"commit_id":"770746d82085394da8a428d60912fb4e9661ffc3","original_commit_id":"770746d82085394da8a428d60912fb4e9661ffc3","user":{"login":"lukechurch","id":2978182,"avatar_url":"https://avatars1.githubusercontent.com/u/2978182?v=4","gravatar_id":"","url":"https://api.github.com/users/lukechurch","html_url":"https://github.com/lukechurch","followers_url":"https://api.github.com/users/lukechurch/followers","following_url":"https://api.github.com/users/lukechurch/following{/other_user}","gists_url":"https://api.github.com/users/lukechurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechurch/subscriptions","organizations_url":"https://api.github.com/users/lukechurch/orgs","repos_url":"https://api.github.com/users/lukechurch/repos","events_url":"https://api.github.com/users/lukechurch/events{/privacy}","received_events_url":"https://api.github.com/users/lukechurch/received_events","type":"User","site_admin":false},"body":"I see it is a copy-paste. Maybe we could look at this sometime later","created_at":"2017-10-02T18:49:51Z","updated_at":"2017-10-02T18:50:36Z","html_url":"https://github.com/lukechurch/coda/pull/84#discussion_r142223511","pull_request_url":"https://api.github.com/repos/lukechurch/coda/pulls/84","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/lukechurch/coda/pulls/comments/142223511"},"html":{"href":"https://github.com/lukechurch/coda/pull/84#discussion_r142223511"},"pull_request":{"href":"https://api.github.com/repos/lukechurch/coda/pulls/84"}},"in_reply_to_id":142223375},"pull_request":{"url":"https://api.github.com/repos/lukechurch/coda/pulls/84","id":144202923,"html_url":"https://github.com/lukechurch/coda/pull/84","diff_url":"https://github.com/lukechurch/coda/pull/84.diff","patch_url":"https://github.com/lukechurch/coda/pull/84.patch","issue_url":"https://api.github.com/repos/lukechurch/coda/issues/84","number":84,"state":"open","locked":false,"title":"Io refactoring: Refactor Alerts","user":{"login":"as2388","id":7963608,"avatar_url":"https://avatars0.githubusercontent.com/u/7963608?v=4","gravatar_id":"","url":"https://api.github.com/users/as2388","html_url":"https://github.com/as2388","followers_url":"https://api.github.com/users/as2388/followers","following_url":"https://api.github.com/users/as2388/following{/other_user}","gists_url":"https://api.github.com/users/as2388/gists{/gist_id}","starred_url":"https://api.github.com/users/as2388/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/as2388/subscriptions","organizations_url":"https://api.github.com/users/as2388/orgs","repos_url":"https://api.github.com/users/as2388/repos","events_url":"https://api.github.com/users/as2388/events{/privacy}","received_events_url":"https://api.github.com/users/as2388/received_events","type":"User","site_admin":false},"body":"Moves the displaying and hiding of alerts from initUI.js to UIUtils.js.\r\n\r\nAlso now displays a UI alert message on all code paths when a dataset or scheme file is uploaded.","created_at":"2017-10-02T14:48:58Z","updated_at":"2017-10-02T18:50:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"599580795478c5aa27789784b11dfa9722b84fe4","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/lukechurch/coda/pulls/84/commits","review_comments_url":"https://api.github.com/repos/lukechurch/coda/pulls/84/comments","review_comment_url":"https://api.github.com/repos/lukechurch/coda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukechurch/coda/issues/84/comments","statuses_url":"https://api.github.com/repos/lukechurch/coda/statuses/770746d82085394da8a428d60912fb4e9661ffc3","head":{"label":"lukechurch:io-refactoring-deduplicate-alerts","ref":"io-refactoring-deduplicate-alerts","sha":"770746d82085394da8a428d60912fb4e9661ffc3","user":{"login":"lukechurch","id":2978182,"avatar_url":"https://avatars1.githubusercontent.com/u/2978182?v=4","gravatar_id":"","url":"https://api.github.com/users/lukechurch","html_url":"https://github.com/lukechurch","followers_url":"https://api.github.com/users/lukechurch/followers","following_url":"https://api.github.com/users/lukechurch/following{/other_user}","gists_url":"https://api.github.com/users/lukechurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechurch/subscriptions","organizations_url":"https://api.github.com/users/lukechurch/orgs","repos_url":"https://api.github.com/users/lukechurch/repos","events_url":"https://api.github.com/users/lukechurch/events{/privacy}","received_events_url":"https://api.github.com/users/lukechurch/received_events","type":"User","site_admin":false},"repo":{"id":67291168,"name":"coda","full_name":"lukechurch/coda","owner":{"login":"lukechurch","id":2978182,"avatar_url":"https://avatars1.githubusercontent.com/u/2978182?v=4","gravatar_id":"","url":"https://api.github.com/users/lukechurch","html_url":"https://github.com/lukechurch","followers_url":"https://api.github.com/users/lukechurch/followers","following_url":"https://api.github.com/users/lukechurch/following{/other_user}","gists_url":"https://api.github.com/users/lukechurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechurch/subscriptions","organizations_url":"https://api.github.com/users/lukechurch/orgs","repos_url":"https://api.github.com/users/lukechurch/repos","events_url":"https://api.github.com/users/lukechurch/events{/privacy}","received_events_url":"https://api.github.com/users/lukechurch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukechurch/coda","description":"Intelligently supporting plural message coding","fork":false,"url":"https://api.github.com/repos/lukechurch/coda","forks_url":"https://api.github.com/repos/lukechurch/coda/forks","keys_url":"https://api.github.com/repos/lukechurch/coda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukechurch/coda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukechurch/coda/teams","hooks_url":"https://api.github.com/repos/lukechurch/coda/hooks","issue_events_url":"https://api.github.com/repos/lukechurch/coda/issues/events{/number}","events_url":"https://api.github.com/repos/lukechurch/coda/events","assignees_url":"https://api.github.com/repos/lukechurch/coda/assignees{/user}","branches_url":"https://api.github.com/repos/lukechurch/coda/branches{/branch}","tags_url":"https://api.github.com/repos/lukechurch/coda/tags","blobs_url":"https://api.github.com/repos/lukechurch/coda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukechurch/coda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukechurch/coda/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukechurch/coda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukechurch/coda/statuses/{sha}","languages_url":"https://api.github.com/repos/lukechurch/coda/languages","stargazers_url":"https://api.github.com/repos/lukechurch/coda/stargazers","contributors_url":"https://api.github.com/repos/lukechurch/coda/contributors","subscribers_url":"https://api.github.com/repos/lukechurch/coda/subscribers","subscription_url":"https://api.github.com/repos/lukechurch/coda/subscription","commits_url":"https://api.github.com/repos/lukechurch/coda/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukechurch/coda/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukechurch/coda/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukechurch/coda/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukechurch/coda/contents/{+path}","compare_url":"https://api.github.com/repos/lukechurch/coda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukechurch/coda/merges","archive_url":"https://api.github.com/repos/lukechurch/coda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukechurch/coda/downloads","issues_url":"https://api.github.com/repos/lukechurch/coda/issues{/number}","pulls_url":"https://api.github.com/repos/lukechurch/coda/pulls{/number}","milestones_url":"https://api.github.com/repos/lukechurch/coda/milestones{/number}","notifications_url":"https://api.github.com/repos/lukechurch/coda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukechurch/coda/labels{/name}","releases_url":"https://api.github.com/repos/lukechurch/coda/releases{/id}","deployments_url":"https://api.github.com/repos/lukechurch/coda/deployments","created_at":"2016-09-03T13:20:48Z","updated_at":"2017-02-06T15:49:51Z","pushed_at":"2017-10-02T15:52:27Z","git_url":"git://github.com/lukechurch/coda.git","ssh_url":"git@github.com:lukechurch/coda.git","clone_url":"https://github.com/lukechurch/coda.git","svn_url":"https://github.com/lukechurch/coda","homepage":"","size":2243,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":42,"forks":0,"open_issues":42,"watchers":0,"default_branch":"master"}},"base":{"label":"lukechurch:master","ref":"master","sha":"7c37b7b8e9771d8ee279b101b22090b993b024af","user":{"login":"lukechurch","id":2978182,"avatar_url":"https://avatars1.githubusercontent.com/u/2978182?v=4","gravatar_id":"","url":"https://api.github.com/users/lukechurch","html_url":"https://github.com/lukechurch","followers_url":"https://api.github.com/users/lukechurch/followers","following_url":"https://api.github.com/users/lukechurch/following{/other_user}","gists_url":"https://api.github.com/users/lukechurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechurch/subscriptions","organizations_url":"https://api.github.com/users/lukechurch/orgs","repos_url":"https://api.github.com/users/lukechurch/repos","events_url":"https://api.github.com/users/lukechurch/events{/privacy}","received_events_url":"https://api.github.com/users/lukechurch/received_events","type":"User","site_admin":false},"repo":{"id":67291168,"name":"coda","full_name":"lukechurch/coda","owner":{"login":"lukechurch","id":2978182,"avatar_url":"https://avatars1.githubusercontent.com/u/2978182?v=4","gravatar_id":"","url":"https://api.github.com/users/lukechurch","html_url":"https://github.com/lukechurch","followers_url":"https://api.github.com/users/lukechurch/followers","following_url":"https://api.github.com/users/lukechurch/following{/other_user}","gists_url":"https://api.github.com/users/lukechurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechurch/subscriptions","organizations_url":"https://api.github.com/users/lukechurch/orgs","repos_url":"https://api.github.com/users/lukechurch/repos","events_url":"https://api.github.com/users/lukechurch/events{/privacy}","received_events_url":"https://api.github.com/users/lukechurch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukechurch/coda","description":"Intelligently supporting plural message coding","fork":false,"url":"https://api.github.com/repos/lukechurch/coda","forks_url":"https://api.github.com/repos/lukechurch/coda/forks","keys_url":"https://api.github.com/repos/lukechurch/coda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukechurch/coda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukechurch/coda/teams","hooks_url":"https://api.github.com/repos/lukechurch/coda/hooks","issue_events_url":"https://api.github.com/repos/lukechurch/coda/issues/events{/number}","events_url":"https://api.github.com/repos/lukechurch/coda/events","assignees_url":"https://api.github.com/repos/lukechurch/coda/assignees{/user}","branches_url":"https://api.github.com/repos/lukechurch/coda/branches{/branch}","tags_url":"https://api.github.com/repos/lukechurch/coda/tags","blobs_url":"https://api.github.com/repos/lukechurch/coda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukechurch/coda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukechurch/coda/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukechurch/coda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukechurch/coda/statuses/{sha}","languages_url":"https://api.github.com/repos/lukechurch/coda/languages","stargazers_url":"https://api.github.com/repos/lukechurch/coda/stargazers","contributors_url":"https://api.github.com/repos/lukechurch/coda/contributors","subscribers_url":"https://api.github.com/repos/lukechurch/coda/subscribers","subscription_url":"https://api.github.com/repos/lukechurch/coda/subscription","commits_url":"https://api.github.com/repos/lukechurch/coda/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukechurch/coda/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukechurch/coda/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukechurch/coda/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukechurch/coda/contents/{+path}","compare_url":"https://api.github.com/repos/lukechurch/coda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukechurch/coda/merges","archive_url":"https://api.github.com/repos/lukechurch/coda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukechurch/coda/downloads","issues_url":"https://api.github.com/repos/lukechurch/coda/issues{/number}","pulls_url":"https://api.github.com/repos/lukechurch/coda/pulls{/number}","milestones_url":"https://api.github.com/repos/lukechurch/coda/milestones{/number}","notifications_url":"https://api.github.com/repos/lukechurch/coda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukechurch/coda/labels{/name}","releases_url":"https://api.github.com/repos/lukechurch/coda/releases{/id}","deployments_url":"https://api.github.com/repos/lukechurch/coda/deployments","created_at":"2016-09-03T13:20:48Z","updated_at":"2017-02-06T15:49:51Z","pushed_at":"2017-10-02T15:52:27Z","git_url":"git://github.com/lukechurch/coda.git","ssh_url":"git@github.com:lukechurch/coda.git","clone_url":"https://github.com/lukechurch/coda.git","svn_url":"https://github.com/lukechurch/coda","homepage":"","size":2243,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":42,"forks":0,"open_issues":42,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukechurch/coda/pulls/84"},"html":{"href":"https://github.com/lukechurch/coda/pull/84"},"issue":{"href":"https://api.github.com/repos/lukechurch/coda/issues/84"},"comments":{"href":"https://api.github.com/repos/lukechurch/coda/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/lukechurch/coda/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/lukechurch/coda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukechurch/coda/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/lukechurch/coda/statuses/770746d82085394da8a428d60912fb4e9661ffc3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"lukechurch"}}