{"action":"created","comment":{"url":"https://api.github.com/repos/penzance/askup/pulls/comments/52234640","id":52234640,"diff_hunk":"@@ -87,5 +87,9 @@\n       var $question_link = $(event.relatedTarget); // element that triggered the modal. $question_link is populated with the data from the click\n       initQuestionDisplayModal($(this), $question_link);\n     })\n+\n+    $('#question_display_Modal').on('shown.bs.modal', function (event) {\n+      $('textarea').focus();","path":"app/views/qsets/_modal_question.erb","position":6,"original_position":6,"commit_id":"f02024f8160e439d36a04a6d0f993a5ba0f220d7","original_commit_id":"f02024f8160e439d36a04a6d0f993a5ba0f220d7","user":{"login":"elliottyates","id":8975317,"avatar_url":"https://avatars.githubusercontent.com/u/8975317?v=3","gravatar_id":"","url":"https://api.github.com/users/elliottyates","html_url":"https://github.com/elliottyates","followers_url":"https://api.github.com/users/elliottyates/followers","following_url":"https://api.github.com/users/elliottyates/following{/other_user}","gists_url":"https://api.github.com/users/elliottyates/gists{/gist_id}","starred_url":"https://api.github.com/users/elliottyates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliottyates/subscriptions","organizations_url":"https://api.github.com/users/elliottyates/orgs","repos_url":"https://api.github.com/users/elliottyates/repos","events_url":"https://api.github.com/users/elliottyates/events{/privacy}","received_events_url":"https://api.github.com/users/elliottyates/received_events","type":"User","site_admin":false},"body":"Note this will work because there are no other `textarea` elements anywhere. If there were, this would not work as expected, because this selector would return a list of the `textarea` elements on the page. So this works, but it would be best to be more specific -- given there's only one quiz-me modal on the page we could attach a unique `id` attribute to that textarea element and select it here instead of this more general selector. It would future-proof us.","created_at":"2016-02-08T22:12:02Z","updated_at":"2016-02-08T22:12:02Z","html_url":"https://github.com/penzance/askup/pull/62#discussion_r52234640","pull_request_url":"https://api.github.com/repos/penzance/askup/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/penzance/askup/pulls/comments/52234640"},"html":{"href":"https://github.com/penzance/askup/pull/62#discussion_r52234640"},"pull_request":{"href":"https://api.github.com/repos/penzance/askup/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/penzance/askup/pulls/62","id":58636219,"html_url":"https://github.com/penzance/askup/pull/62","diff_url":"https://github.com/penzance/askup/pull/62.diff","patch_url":"https://github.com/penzance/askup/pull/62.patch","issue_url":"https://api.github.com/repos/penzance/askup/issues/62","number":62,"state":"open","locked":false,"title":"cursor autofocuses to answer text box on load","user":{"login":"rckim77","id":2919157,"avatar_url":"https://avatars.githubusercontent.com/u/2919157?v=3","gravatar_id":"","url":"https://api.github.com/users/rckim77","html_url":"https://github.com/rckim77","followers_url":"https://api.github.com/users/rckim77/followers","following_url":"https://api.github.com/users/rckim77/following{/other_user}","gists_url":"https://api.github.com/users/rckim77/gists{/gist_id}","starred_url":"https://api.github.com/users/rckim77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rckim77/subscriptions","organizations_url":"https://api.github.com/users/rckim77/orgs","repos_url":"https://api.github.com/users/rckim77/repos","events_url":"https://api.github.com/users/rckim77/events{/privacy}","received_events_url":"https://api.github.com/users/rckim77/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-08T16:55:54Z","updated_at":"2016-02-08T22:12:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0faf345b55fbad972751ae3dd0c480bdd9397afb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/penzance/askup/pulls/62/commits","review_comments_url":"https://api.github.com/repos/penzance/askup/pulls/62/comments","review_comment_url":"https://api.github.com/repos/penzance/askup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/penzance/askup/issues/62/comments","statuses_url":"https://api.github.com/repos/penzance/askup/statuses/f02024f8160e439d36a04a6d0f993a5ba0f220d7","head":{"label":"rckim77:cursor_autofocus","ref":"cursor_autofocus","sha":"f02024f8160e439d36a04a6d0f993a5ba0f220d7","user":{"login":"rckim77","id":2919157,"avatar_url":"https://avatars.githubusercontent.com/u/2919157?v=3","gravatar_id":"","url":"https://api.github.com/users/rckim77","html_url":"https://github.com/rckim77","followers_url":"https://api.github.com/users/rckim77/followers","following_url":"https://api.github.com/users/rckim77/following{/other_user}","gists_url":"https://api.github.com/users/rckim77/gists{/gist_id}","starred_url":"https://api.github.com/users/rckim77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rckim77/subscriptions","organizations_url":"https://api.github.com/users/rckim77/orgs","repos_url":"https://api.github.com/users/rckim77/repos","events_url":"https://api.github.com/users/rckim77/events{/privacy}","received_events_url":"https://api.github.com/users/rckim77/received_events","type":"User","site_admin":false},"repo":{"id":43318085,"name":"askup","full_name":"rckim77/askup","owner":{"login":"rckim77","id":2919157,"avatar_url":"https://avatars.githubusercontent.com/u/2919157?v=3","gravatar_id":"","url":"https://api.github.com/users/rckim77","html_url":"https://github.com/rckim77","followers_url":"https://api.github.com/users/rckim77/followers","following_url":"https://api.github.com/users/rckim77/following{/other_user}","gists_url":"https://api.github.com/users/rckim77/gists{/gist_id}","starred_url":"https://api.github.com/users/rckim77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rckim77/subscriptions","organizations_url":"https://api.github.com/users/rckim77/orgs","repos_url":"https://api.github.com/users/rckim77/repos","events_url":"https://api.github.com/users/rckim77/events{/privacy}","received_events_url":"https://api.github.com/users/rckim77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rckim77/askup","description":"","fork":true,"url":"https://api.github.com/repos/rckim77/askup","forks_url":"https://api.github.com/repos/rckim77/askup/forks","keys_url":"https://api.github.com/repos/rckim77/askup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rckim77/askup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rckim77/askup/teams","hooks_url":"https://api.github.com/repos/rckim77/askup/hooks","issue_events_url":"https://api.github.com/repos/rckim77/askup/issues/events{/number}","events_url":"https://api.github.com/repos/rckim77/askup/events","assignees_url":"https://api.github.com/repos/rckim77/askup/assignees{/user}","branches_url":"https://api.github.com/repos/rckim77/askup/branches{/branch}","tags_url":"https://api.github.com/repos/rckim77/askup/tags","blobs_url":"https://api.github.com/repos/rckim77/askup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rckim77/askup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rckim77/askup/git/refs{/sha}","trees_url":"https://api.github.com/repos/rckim77/askup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rckim77/askup/statuses/{sha}","languages_url":"https://api.github.com/repos/rckim77/askup/languages","stargazers_url":"https://api.github.com/repos/rckim77/askup/stargazers","contributors_url":"https://api.github.com/repos/rckim77/askup/contributors","subscribers_url":"https://api.github.com/repos/rckim77/askup/subscribers","subscription_url":"https://api.github.com/repos/rckim77/askup/subscription","commits_url":"https://api.github.com/repos/rckim77/askup/commits{/sha}","git_commits_url":"https://api.github.com/repos/rckim77/askup/git/commits{/sha}","comments_url":"https://api.github.com/repos/rckim77/askup/comments{/number}","issue_comment_url":"https://api.github.com/repos/rckim77/askup/issues/comments{/number}","contents_url":"https://api.github.com/repos/rckim77/askup/contents/{+path}","compare_url":"https://api.github.com/repos/rckim77/askup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rckim77/askup/merges","archive_url":"https://api.github.com/repos/rckim77/askup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rckim77/askup/downloads","issues_url":"https://api.github.com/repos/rckim77/askup/issues{/number}","pulls_url":"https://api.github.com/repos/rckim77/askup/pulls{/number}","milestones_url":"https://api.github.com/repos/rckim77/askup/milestones{/number}","notifications_url":"https://api.github.com/repos/rckim77/askup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rckim77/askup/labels{/name}","releases_url":"https://api.github.com/repos/rckim77/askup/releases{/id}","deployments_url":"https://api.github.com/repos/rckim77/askup/deployments","created_at":"2015-09-28T18:11:21Z","updated_at":"2015-09-28T18:11:21Z","pushed_at":"2016-02-08T19:35:27Z","git_url":"git://github.com/rckim77/askup.git","ssh_url":"git@github.com:rckim77/askup.git","clone_url":"https://github.com/rckim77/askup.git","svn_url":"https://github.com/rckim77/askup","homepage":null,"size":3441,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"penzance:master","ref":"master","sha":"e742a062b809a4ca66228eadb2a2a6ff7903cab5","user":{"login":"penzance","id":7885127,"avatar_url":"https://avatars.githubusercontent.com/u/7885127?v=3","gravatar_id":"","url":"https://api.github.com/users/penzance","html_url":"https://github.com/penzance","followers_url":"https://api.github.com/users/penzance/followers","following_url":"https://api.github.com/users/penzance/following{/other_user}","gists_url":"https://api.github.com/users/penzance/gists{/gist_id}","starred_url":"https://api.github.com/users/penzance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penzance/subscriptions","organizations_url":"https://api.github.com/users/penzance/orgs","repos_url":"https://api.github.com/users/penzance/repos","events_url":"https://api.github.com/users/penzance/events{/privacy}","received_events_url":"https://api.github.com/users/penzance/received_events","type":"Organization","site_admin":false},"repo":{"id":29279361,"name":"askup","full_name":"penzance/askup","owner":{"login":"penzance","id":7885127,"avatar_url":"https://avatars.githubusercontent.com/u/7885127?v=3","gravatar_id":"","url":"https://api.github.com/users/penzance","html_url":"https://github.com/penzance","followers_url":"https://api.github.com/users/penzance/followers","following_url":"https://api.github.com/users/penzance/following{/other_user}","gists_url":"https://api.github.com/users/penzance/gists{/gist_id}","starred_url":"https://api.github.com/users/penzance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penzance/subscriptions","organizations_url":"https://api.github.com/users/penzance/orgs","repos_url":"https://api.github.com/users/penzance/repos","events_url":"https://api.github.com/users/penzance/events{/privacy}","received_events_url":"https://api.github.com/users/penzance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/penzance/askup","description":"","fork":false,"url":"https://api.github.com/repos/penzance/askup","forks_url":"https://api.github.com/repos/penzance/askup/forks","keys_url":"https://api.github.com/repos/penzance/askup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/penzance/askup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/penzance/askup/teams","hooks_url":"https://api.github.com/repos/penzance/askup/hooks","issue_events_url":"https://api.github.com/repos/penzance/askup/issues/events{/number}","events_url":"https://api.github.com/repos/penzance/askup/events","assignees_url":"https://api.github.com/repos/penzance/askup/assignees{/user}","branches_url":"https://api.github.com/repos/penzance/askup/branches{/branch}","tags_url":"https://api.github.com/repos/penzance/askup/tags","blobs_url":"https://api.github.com/repos/penzance/askup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/penzance/askup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/penzance/askup/git/refs{/sha}","trees_url":"https://api.github.com/repos/penzance/askup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/penzance/askup/statuses/{sha}","languages_url":"https://api.github.com/repos/penzance/askup/languages","stargazers_url":"https://api.github.com/repos/penzance/askup/stargazers","contributors_url":"https://api.github.com/repos/penzance/askup/contributors","subscribers_url":"https://api.github.com/repos/penzance/askup/subscribers","subscription_url":"https://api.github.com/repos/penzance/askup/subscription","commits_url":"https://api.github.com/repos/penzance/askup/commits{/sha}","git_commits_url":"https://api.github.com/repos/penzance/askup/git/commits{/sha}","comments_url":"https://api.github.com/repos/penzance/askup/comments{/number}","issue_comment_url":"https://api.github.com/repos/penzance/askup/issues/comments{/number}","contents_url":"https://api.github.com/repos/penzance/askup/contents/{+path}","compare_url":"https://api.github.com/repos/penzance/askup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/penzance/askup/merges","archive_url":"https://api.github.com/repos/penzance/askup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/penzance/askup/downloads","issues_url":"https://api.github.com/repos/penzance/askup/issues{/number}","pulls_url":"https://api.github.com/repos/penzance/askup/pulls{/number}","milestones_url":"https://api.github.com/repos/penzance/askup/milestones{/number}","notifications_url":"https://api.github.com/repos/penzance/askup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/penzance/askup/labels{/name}","releases_url":"https://api.github.com/repos/penzance/askup/releases{/id}","deployments_url":"https://api.github.com/repos/penzance/askup/deployments","created_at":"2015-01-15T03:42:43Z","updated_at":"2016-01-26T16:51:30Z","pushed_at":"2016-02-08T20:19:48Z","git_url":"git://github.com/penzance/askup.git","ssh_url":"git@github.com:penzance/askup.git","clone_url":"https://github.com/penzance/askup.git","svn_url":"https://github.com/penzance/askup","homepage":null,"size":3466,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/penzance/askup/pulls/62"},"html":{"href":"https://github.com/penzance/askup/pull/62"},"issue":{"href":"https://api.github.com/repos/penzance/askup/issues/62"},"comments":{"href":"https://api.github.com/repos/penzance/askup/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/penzance/askup/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/penzance/askup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/penzance/askup/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/penzance/askup/statuses/f02024f8160e439d36a04a6d0f993a5ba0f220d7"}}}}