{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments/39462114","id":39462114,"diff_hunk":"@@ -34,11 +34,17 @@\n           PubSub.publish('updateBottomPanel', true);\n         }\n       });\n-      PubSub.subscribe('disableModes', function() {\n-        $embedHeader.find('[data-sul-view-mode]').hide();\n+      PubSub.subscribe('disableMode', function(_, mode) {\n+        $embedHeader.find('[data-sul-view-mode=\"' + mode + '\"]').addClass('sul-embed-hidden');\n       });\n       PubSub.subscribe('disableOverviewPerspective', function() {\n-        $embedHeader.find('[data-sul-view-perspective]').hide();\n+        $embedHeader.find('[data-sul-view-perspective]').addClass('sub-embed-hidden');\n+      });\n+      PubSub.subscribe('enableMode', function(_, mode) {\n+        $embedHeader.find('[data-sul-view-mode=\"' + mode + '\"]').removeClass('sul-embed-hidden');","path":"app/assets/javascripts/modules/image_x_viewer.js","position":14,"original_position":14,"commit_id":"8e10f6a50d90c5a37403db0931727d6e48f71bd1","original_commit_id":"8e10f6a50d90c5a37403db0931727d6e48f71bd1","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":"Line is too long.","created_at":"2015-09-15T00:03:16Z","updated_at":"2015-09-15T00:03:16Z","html_url":"https://github.com/sul-dlss/sul-embed/pull/426#discussion_r39462114","pull_request_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments/39462114"},"html":{"href":"https://github.com/sul-dlss/sul-embed/pull/426#discussion_r39462114"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426"}}},"pull_request":{"url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426","id":44995511,"html_url":"https://github.com/sul-dlss/sul-embed/pull/426","diff_url":"https://github.com/sul-dlss/sul-embed/pull/426.diff","patch_url":"https://github.com/sul-dlss/sul-embed/pull/426.patch","issue_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/426","number":426,"state":"open","locked":false,"title":"Default hide buttons","user":{"login":"mejackreed","id":1656824,"avatar_url":"https://avatars.githubusercontent.com/u/1656824?v=3","gravatar_id":"","url":"https://api.github.com/users/mejackreed","html_url":"https://github.com/mejackreed","followers_url":"https://api.github.com/users/mejackreed/followers","following_url":"https://api.github.com/users/mejackreed/following{/other_user}","gists_url":"https://api.github.com/users/mejackreed/gists{/gist_id}","starred_url":"https://api.github.com/users/mejackreed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mejackreed/subscriptions","organizations_url":"https://api.github.com/users/mejackreed/orgs","repos_url":"https://api.github.com/users/mejackreed/repos","events_url":"https://api.github.com/users/mejackreed/events{/privacy}","received_events_url":"https://api.github.com/users/mejackreed/received_events","type":"User","site_admin":false},"body":"By default, hide buttons and enable them on behavior provided by manifest.json\r\n\r\nCloses #423 ","created_at":"2015-09-15T00:03:09Z","updated_at":"2015-09-15T00:03:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46c2f3cb75ef65dc4cf5e71bebf4d54b7285eba8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426/commits","review_comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426/comments","review_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/426/comments","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/8e10f6a50d90c5a37403db0931727d6e48f71bd1","head":{"label":"sul-dlss:default-hide-buttons","ref":"default-hide-buttons","sha":"8e10f6a50d90c5a37403db0931727d6e48f71bd1","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":24868135,"name":"sul-embed","full_name":"sul-dlss/sul-embed","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/sul-embed","description":"An oEmbed Service for Stanford University Libraries","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-embed","forks_url":"https://api.github.com/repos/sul-dlss/sul-embed/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-embed/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-embed/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-embed/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-embed/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-embed/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-embed/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-embed/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-embed/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-embed/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-embed/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-embed/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-embed/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-embed/releases{/id}","created_at":"2014-10-06T22:54:10Z","updated_at":"2015-07-20T15:02:15Z","pushed_at":"2015-09-15T00:03:09Z","git_url":"git://github.com/sul-dlss/sul-embed.git","ssh_url":"git@github.com:sul-dlss/sul-embed.git","clone_url":"https://github.com/sul-dlss/sul-embed.git","svn_url":"https://github.com/sul-dlss/sul-embed","homepage":null,"size":3344,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":56,"forks":0,"open_issues":56,"watchers":6,"default_branch":"master"}},"base":{"label":"sul-dlss:master","ref":"master","sha":"8c403c505f8dc984d60bccd6670a79b40789203a","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":24868135,"name":"sul-embed","full_name":"sul-dlss/sul-embed","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/sul-embed","description":"An oEmbed Service for Stanford University Libraries","fork":false,"url":"https://api.github.com/repos/sul-dlss/sul-embed","forks_url":"https://api.github.com/repos/sul-dlss/sul-embed/forks","keys_url":"https://api.github.com/repos/sul-dlss/sul-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/sul-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/sul-embed/teams","hooks_url":"https://api.github.com/repos/sul-dlss/sul-embed/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/sul-embed/events","assignees_url":"https://api.github.com/repos/sul-dlss/sul-embed/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/sul-embed/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/tags","blobs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/sul-embed/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/sul-embed/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/sul-embed/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/sul-embed/subscription","commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/sul-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/sul-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/sul-embed/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/sul-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/sul-embed/merges","archive_url":"https://api.github.com/repos/sul-dlss/sul-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/sul-embed/downloads","issues_url":"https://api.github.com/repos/sul-dlss/sul-embed/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/sul-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/sul-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/sul-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/sul-embed/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/sul-embed/releases{/id}","created_at":"2014-10-06T22:54:10Z","updated_at":"2015-07-20T15:02:15Z","pushed_at":"2015-09-15T00:03:09Z","git_url":"git://github.com/sul-dlss/sul-embed.git","ssh_url":"git@github.com:sul-dlss/sul-embed.git","clone_url":"https://github.com/sul-dlss/sul-embed.git","svn_url":"https://github.com/sul-dlss/sul-embed","homepage":null,"size":3344,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":56,"forks":0,"open_issues":56,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426"},"html":{"href":"https://github.com/sul-dlss/sul-embed/pull/426"},"issue":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/issues/426"},"comments":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/issues/426/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/pulls/426/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss/sul-embed/statuses/8e10f6a50d90c5a37403db0931727d6e48f71bd1"}}}}