{"action":"created","comment":{"url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments/72914739","id":72914739,"diff_hunk":"@@ -45,18 +45,116 @@ function toggleVisibilityPreviewTab(clickedButton) {\n     $disabledInputs.prop('disabled', true);\n }\n \n-function getVisibilityMessageIfPreviewIsActive(clickedButton) {\n+function getVisibilityMessage(clickedButton) {\n     var $containingForm = $(clickedButton).closest('form');\n-    \n-    if ($containingForm.find('.visibilityMessageButton').hasClass('active')) {\n+    updatePreviewTab($containingForm);\n+}\n+\n+function attachVisibilityDropdownEvent() {","path":"src/main/webapp/js/instructorFeedbackEdit/visibilityOptions.js","position":12,"original_position":12,"commit_id":"09d01209142586c0079d5b803ceabdc13e4dd885","original_commit_id":"09d01209142586c0079d5b803ceabdc13e4dd885","user":{"login":"YongJieYongJie","id":14101781,"avatar_url":"https://avatars.githubusercontent.com/u/14101781?v=3","gravatar_id":"","url":"https://api.github.com/users/YongJieYongJie","html_url":"https://github.com/YongJieYongJie","followers_url":"https://api.github.com/users/YongJieYongJie/followers","following_url":"https://api.github.com/users/YongJieYongJie/following{/other_user}","gists_url":"https://api.github.com/users/YongJieYongJie/gists{/gist_id}","starred_url":"https://api.github.com/users/YongJieYongJie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YongJieYongJie/subscriptions","organizations_url":"https://api.github.com/users/YongJieYongJie/orgs","repos_url":"https://api.github.com/users/YongJieYongJie/repos","events_url":"https://api.github.com/users/YongJieYongJie/events{/privacy}","received_events_url":"https://api.github.com/users/YongJieYongJie/received_events","type":"User","site_admin":false},"body":"add header comments","created_at":"2016-08-01T00:45:07Z","updated_at":"2016-08-01T00:45:07Z","html_url":"https://github.com/TEAMMATES/teammates/pull/5939#discussion_r72914739","pull_request_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939","_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments/72914739"},"html":{"href":"https://github.com/TEAMMATES/teammates/pull/5939#discussion_r72914739"},"pull_request":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939"}}},"pull_request":{"url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939","id":79309716,"html_url":"https://github.com/TEAMMATES/teammates/pull/5939","diff_url":"https://github.com/TEAMMATES/teammates/pull/5939.diff","patch_url":"https://github.com/TEAMMATES/teammates/pull/5939.patch","issue_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/5939","number":5939,"state":"open","locked":false,"title":"Improve visibility options UI #5938","user":{"login":"YongJieYongJie","id":14101781,"avatar_url":"https://avatars.githubusercontent.com/u/14101781?v=3","gravatar_id":"","url":"https://api.github.com/users/YongJieYongJie","html_url":"https://github.com/YongJieYongJie","followers_url":"https://api.github.com/users/YongJieYongJie/followers","following_url":"https://api.github.com/users/YongJieYongJie/following{/other_user}","gists_url":"https://api.github.com/users/YongJieYongJie/gists{/gist_id}","starred_url":"https://api.github.com/users/YongJieYongJie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YongJieYongJie/subscriptions","organizations_url":"https://api.github.com/users/YongJieYongJie/orgs","repos_url":"https://api.github.com/users/YongJieYongJie/repos","events_url":"https://api.github.com/users/YongJieYongJie/events{/privacy}","received_events_url":"https://api.github.com/users/YongJieYongJie/received_events","type":"User","site_admin":false},"body":"Fixes #5938\r\n\r\noptions and wording:\r\n![cropped visibility](https://cloud.githubusercontent.com/assets/14101781/17278294/66b6b188-578c-11e6-87f5-c7db32124e8a.png)\r\n\r\nin context:\r\n![2016-08-01-020205_1280x800_scrot](https://cloud.githubusercontent.com/assets/14101781/17278281/26ff91b8-578c-11e6-9929-16f89ee6a0ac.png)\r\n![2016-08-01-020220_1280x800_scrot](https://cloud.githubusercontent.com/assets/14101781/17278284/2a4fa128-578c-11e6-8c07-b4168e9469ea.png)\r\n\r\nwhen visibility message fails to load:\r\n![cropped error message](https://cloud.githubusercontent.com/assets/14101781/17278311/01ee6dd0-578d-11e6-9e6e-09c9a93b00e0.png)\r\n\r\n\r\n","created_at":"2016-07-29T05:46:53Z","updated_at":"2016-08-01T00:45:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"909673bd99df72c68e060481dac74c13356ea188","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939/commits","review_comments_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939/comments","review_comment_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/5939/comments","statuses_url":"https://api.github.com/repos/TEAMMATES/teammates/statuses/09d01209142586c0079d5b803ceabdc13e4dd885","head":{"label":"YongJieYongJie:5938-improve-visibility-options-ui","ref":"5938-improve-visibility-options-ui","sha":"09d01209142586c0079d5b803ceabdc13e4dd885","user":{"login":"YongJieYongJie","id":14101781,"avatar_url":"https://avatars.githubusercontent.com/u/14101781?v=3","gravatar_id":"","url":"https://api.github.com/users/YongJieYongJie","html_url":"https://github.com/YongJieYongJie","followers_url":"https://api.github.com/users/YongJieYongJie/followers","following_url":"https://api.github.com/users/YongJieYongJie/following{/other_user}","gists_url":"https://api.github.com/users/YongJieYongJie/gists{/gist_id}","starred_url":"https://api.github.com/users/YongJieYongJie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YongJieYongJie/subscriptions","organizations_url":"https://api.github.com/users/YongJieYongJie/orgs","repos_url":"https://api.github.com/users/YongJieYongJie/repos","events_url":"https://api.github.com/users/YongJieYongJie/events{/privacy}","received_events_url":"https://api.github.com/users/YongJieYongJie/received_events","type":"User","site_admin":false},"repo":{"id":53263692,"name":"teammates","full_name":"YongJieYongJie/teammates","owner":{"login":"YongJieYongJie","id":14101781,"avatar_url":"https://avatars.githubusercontent.com/u/14101781?v=3","gravatar_id":"","url":"https://api.github.com/users/YongJieYongJie","html_url":"https://github.com/YongJieYongJie","followers_url":"https://api.github.com/users/YongJieYongJie/followers","following_url":"https://api.github.com/users/YongJieYongJie/following{/other_user}","gists_url":"https://api.github.com/users/YongJieYongJie/gists{/gist_id}","starred_url":"https://api.github.com/users/YongJieYongJie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YongJieYongJie/subscriptions","organizations_url":"https://api.github.com/users/YongJieYongJie/orgs","repos_url":"https://api.github.com/users/YongJieYongJie/repos","events_url":"https://api.github.com/users/YongJieYongJie/events{/privacy}","received_events_url":"https://api.github.com/users/YongJieYongJie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YongJieYongJie/teammates","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":true,"url":"https://api.github.com/repos/YongJieYongJie/teammates","forks_url":"https://api.github.com/repos/YongJieYongJie/teammates/forks","keys_url":"https://api.github.com/repos/YongJieYongJie/teammates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YongJieYongJie/teammates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YongJieYongJie/teammates/teams","hooks_url":"https://api.github.com/repos/YongJieYongJie/teammates/hooks","issue_events_url":"https://api.github.com/repos/YongJieYongJie/teammates/issues/events{/number}","events_url":"https://api.github.com/repos/YongJieYongJie/teammates/events","assignees_url":"https://api.github.com/repos/YongJieYongJie/teammates/assignees{/user}","branches_url":"https://api.github.com/repos/YongJieYongJie/teammates/branches{/branch}","tags_url":"https://api.github.com/repos/YongJieYongJie/teammates/tags","blobs_url":"https://api.github.com/repos/YongJieYongJie/teammates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YongJieYongJie/teammates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YongJieYongJie/teammates/git/refs{/sha}","trees_url":"https://api.github.com/repos/YongJieYongJie/teammates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YongJieYongJie/teammates/statuses/{sha}","languages_url":"https://api.github.com/repos/YongJieYongJie/teammates/languages","stargazers_url":"https://api.github.com/repos/YongJieYongJie/teammates/stargazers","contributors_url":"https://api.github.com/repos/YongJieYongJie/teammates/contributors","subscribers_url":"https://api.github.com/repos/YongJieYongJie/teammates/subscribers","subscription_url":"https://api.github.com/repos/YongJieYongJie/teammates/subscription","commits_url":"https://api.github.com/repos/YongJieYongJie/teammates/commits{/sha}","git_commits_url":"https://api.github.com/repos/YongJieYongJie/teammates/git/commits{/sha}","comments_url":"https://api.github.com/repos/YongJieYongJie/teammates/comments{/number}","issue_comment_url":"https://api.github.com/repos/YongJieYongJie/teammates/issues/comments{/number}","contents_url":"https://api.github.com/repos/YongJieYongJie/teammates/contents/{+path}","compare_url":"https://api.github.com/repos/YongJieYongJie/teammates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YongJieYongJie/teammates/merges","archive_url":"https://api.github.com/repos/YongJieYongJie/teammates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YongJieYongJie/teammates/downloads","issues_url":"https://api.github.com/repos/YongJieYongJie/teammates/issues{/number}","pulls_url":"https://api.github.com/repos/YongJieYongJie/teammates/pulls{/number}","milestones_url":"https://api.github.com/repos/YongJieYongJie/teammates/milestones{/number}","notifications_url":"https://api.github.com/repos/YongJieYongJie/teammates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YongJieYongJie/teammates/labels{/name}","releases_url":"https://api.github.com/repos/YongJieYongJie/teammates/releases{/id}","deployments_url":"https://api.github.com/repos/YongJieYongJie/teammates/deployments","created_at":"2016-03-06T16:12:07Z","updated_at":"2016-03-06T16:12:14Z","pushed_at":"2016-07-31T18:01:17Z","git_url":"git://github.com/YongJieYongJie/teammates.git","ssh_url":"git@github.com:YongJieYongJie/teammates.git","clone_url":"https://github.com/YongJieYongJie/teammates.git","svn_url":"https://github.com/YongJieYongJie/teammates","homepage":"http://teammatesv4.appspot.com/","size":166420,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"TEAMMATES:master","ref":"master","sha":"b0671415489c94b65e7733c51ffb5d0a4be51e96","user":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"repo":{"id":19369035,"name":"teammates","full_name":"TEAMMATES/teammates","owner":{"login":"TEAMMATES","id":7374810,"avatar_url":"https://avatars.githubusercontent.com/u/7374810?v=3","gravatar_id":"","url":"https://api.github.com/users/TEAMMATES","html_url":"https://github.com/TEAMMATES","followers_url":"https://api.github.com/users/TEAMMATES/followers","following_url":"https://api.github.com/users/TEAMMATES/following{/other_user}","gists_url":"https://api.github.com/users/TEAMMATES/gists{/gist_id}","starred_url":"https://api.github.com/users/TEAMMATES/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TEAMMATES/subscriptions","organizations_url":"https://api.github.com/users/TEAMMATES/orgs","repos_url":"https://api.github.com/users/TEAMMATES/repos","events_url":"https://api.github.com/users/TEAMMATES/events{/privacy}","received_events_url":"https://api.github.com/users/TEAMMATES/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TEAMMATES/teammates","description":"This is the project website for the TEAMMATES feedback management tool for education","fork":false,"url":"https://api.github.com/repos/TEAMMATES/teammates","forks_url":"https://api.github.com/repos/TEAMMATES/teammates/forks","keys_url":"https://api.github.com/repos/TEAMMATES/teammates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TEAMMATES/teammates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TEAMMATES/teammates/teams","hooks_url":"https://api.github.com/repos/TEAMMATES/teammates/hooks","issue_events_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/events{/number}","events_url":"https://api.github.com/repos/TEAMMATES/teammates/events","assignees_url":"https://api.github.com/repos/TEAMMATES/teammates/assignees{/user}","branches_url":"https://api.github.com/repos/TEAMMATES/teammates/branches{/branch}","tags_url":"https://api.github.com/repos/TEAMMATES/teammates/tags","blobs_url":"https://api.github.com/repos/TEAMMATES/teammates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TEAMMATES/teammates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TEAMMATES/teammates/git/refs{/sha}","trees_url":"https://api.github.com/repos/TEAMMATES/teammates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TEAMMATES/teammates/statuses/{sha}","languages_url":"https://api.github.com/repos/TEAMMATES/teammates/languages","stargazers_url":"https://api.github.com/repos/TEAMMATES/teammates/stargazers","contributors_url":"https://api.github.com/repos/TEAMMATES/teammates/contributors","subscribers_url":"https://api.github.com/repos/TEAMMATES/teammates/subscribers","subscription_url":"https://api.github.com/repos/TEAMMATES/teammates/subscription","commits_url":"https://api.github.com/repos/TEAMMATES/teammates/commits{/sha}","git_commits_url":"https://api.github.com/repos/TEAMMATES/teammates/git/commits{/sha}","comments_url":"https://api.github.com/repos/TEAMMATES/teammates/comments{/number}","issue_comment_url":"https://api.github.com/repos/TEAMMATES/teammates/issues/comments{/number}","contents_url":"https://api.github.com/repos/TEAMMATES/teammates/contents/{+path}","compare_url":"https://api.github.com/repos/TEAMMATES/teammates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TEAMMATES/teammates/merges","archive_url":"https://api.github.com/repos/TEAMMATES/teammates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TEAMMATES/teammates/downloads","issues_url":"https://api.github.com/repos/TEAMMATES/teammates/issues{/number}","pulls_url":"https://api.github.com/repos/TEAMMATES/teammates/pulls{/number}","milestones_url":"https://api.github.com/repos/TEAMMATES/teammates/milestones{/number}","notifications_url":"https://api.github.com/repos/TEAMMATES/teammates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TEAMMATES/teammates/labels{/name}","releases_url":"https://api.github.com/repos/TEAMMATES/teammates/releases{/id}","deployments_url":"https://api.github.com/repos/TEAMMATES/teammates/deployments","created_at":"2014-05-02T07:43:00Z","updated_at":"2016-07-31T02:56:02Z","pushed_at":"2016-07-31T19:54:13Z","git_url":"git://github.com/TEAMMATES/teammates.git","ssh_url":"git@github.com:TEAMMATES/teammates.git","clone_url":"https://github.com/TEAMMATES/teammates.git","svn_url":"https://github.com/TEAMMATES/teammates","homepage":"http://teammatesv4.appspot.com/","size":194779,"stargazers_count":108,"watchers_count":108,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":287,"mirror_url":null,"open_issues_count":494,"forks":287,"open_issues":494,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939"},"html":{"href":"https://github.com/TEAMMATES/teammates/pull/5939"},"issue":{"href":"https://api.github.com/repos/TEAMMATES/teammates/issues/5939"},"comments":{"href":"https://api.github.com/repos/TEAMMATES/teammates/issues/5939/comments"},"review_comments":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939/comments"},"review_comment":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TEAMMATES/teammates/pulls/5939/commits"},"statuses":{"href":"https://api.github.com/repos/TEAMMATES/teammates/statuses/09d01209142586c0079d5b803ceabdc13e4dd885"}}}}
{"actor":{"display_login":"YongJieYongJie"}}