{"action":"created","comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/40609744","id":40609744,"diff_hunk":"@@ -0,0 +1,474 @@\n+{% extends \"style/bootstrap3/base_section.html\" %}\n+{% load i18n %}\n+{% load hq_shared_tags %}\n+{% load crispy_forms_tags %}\n+{% load djangular_tags %}\n+\n+{% block js %}\n+<script type=\"text/javascript\"\n+        src=\"{% new_static 'style/js/pagination.ng.js' %}\"></script>\n+<script type=\"text/javascript\"\n+        src=\"{% new_static 'users/js/mobile_workers.ng.js' %}\"></script>\n+{% endblock %}\n+\n+{% block js-inline %}{{ block.super }}\n+<script type=\"text/javascript\">\n+$(function () {\n+   'use strict';\n+    $('#newMobileWorkerModal').on('shown.bs.modal', function () {\n+        $('#id_username').focus();","path":"corehq/apps/users/templates/users/mobile_workers.html","position":19,"original_position":19,"commit_id":"4432823108141a2db4e21aff814dc38a83c5f47a","original_commit_id":"4432823108141a2db4e21aff814dc38a83c5f47a","user":{"login":"biyeun","id":716573,"avatar_url":"https://avatars.githubusercontent.com/u/716573?v=3","gravatar_id":"","url":"https://api.github.com/users/biyeun","html_url":"https://github.com/biyeun","followers_url":"https://api.github.com/users/biyeun/followers","following_url":"https://api.github.com/users/biyeun/following{/other_user}","gists_url":"https://api.github.com/users/biyeun/gists{/gist_id}","starred_url":"https://api.github.com/users/biyeun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biyeun/subscriptions","organizations_url":"https://api.github.com/users/biyeun/orgs","repos_url":"https://api.github.com/users/biyeun/repos","events_url":"https://api.github.com/users/biyeun/events{/privacy}","received_events_url":"https://api.github.com/users/biyeun/received_events","type":"User","site_admin":false},"body":"I don't want it to focus when it's on page load, but specifically when the modal is shown. Autofocus is for page load","created_at":"2015-09-28T21:45:25Z","updated_at":"2015-09-28T21:45:25Z","html_url":"https://github.com/dimagi/commcare-hq/pull/7989#discussion_r40609744","pull_request_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989","_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments/40609744"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/7989#discussion_r40609744"},"pull_request":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989"}}},"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989","id":43295360,"html_url":"https://github.com/dimagi/commcare-hq/pull/7989","diff_url":"https://github.com/dimagi/commcare-hq/pull/7989.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/7989.patch","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/7989","number":7989,"state":"open","locked":false,"title":"New mobile workers","user":{"login":"biyeun","id":716573,"avatar_url":"https://avatars.githubusercontent.com/u/716573?v=3","gravatar_id":"","url":"https://api.github.com/users/biyeun","html_url":"https://github.com/biyeun","followers_url":"https://api.github.com/users/biyeun/followers","following_url":"https://api.github.com/users/biyeun/following{/other_user}","gists_url":"https://api.github.com/users/biyeun/gists{/gist_id}","starred_url":"https://api.github.com/users/biyeun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biyeun/subscriptions","organizations_url":"https://api.github.com/users/biyeun/orgs","repos_url":"https://api.github.com/users/biyeun/repos","events_url":"https://api.github.com/users/biyeun/events{/privacy}","received_events_url":"https://api.github.com/users/biyeun/received_events","type":"User","site_admin":false},"body":"- asyncs the addition and activate / deactivation of mobile workers\r\n- asyncs form validation\r\n\r\n@esoergel cc @benrudolph \r\n\r\n<img width=\"1228\" alt=\"screen shot 2015-08-25 at 10 51 07 am\" src=\"https://cloud.githubusercontent.com/assets/716573/9469892/61a7077e-4b17-11e5-99d0-74fae9bd1e72.png\">\r\n<img width=\"1206\" alt=\"screen shot 2015-08-25 at 10 51 01 am\" src=\"https://cloud.githubusercontent.com/assets/716573/9469894/61a81114-4b17-11e5-9f02-d6d2889db5c0.png\">\r\n<img width=\"348\" alt=\"screen shot 2015-08-25 at 10 50 45 am\" src=\"https://cloud.githubusercontent.com/assets/716573/9469895/61aa1fb8-4b17-11e5-965c-5944c310e8f5.png\">\r\n<img width=\"473\" alt=\"screen shot 2015-08-25 at 10 50 39 am\" src=\"https://cloud.githubusercontent.com/assets/716573/9469893/61a7c358-4b17-11e5-842c-752474125817.png\">\r\n<img width=\"585\" alt=\"screen shot 2015-08-25 at 10 50 32 am\" src=\"https://cloud.githubusercontent.com/assets/716573/9469897/61b20336-4b17-11e5-977b-177a961a12c6.png\">\r\n<img width=\"608\" alt=\"screen shot 2015-08-25 at 10 50 24 am\" src=\"https://cloud.githubusercontent.com/assets/716573/9469896/61b1f120-4b17-11e5-8385-fb0d4125e353.png\">\r\n","created_at":"2015-08-25T14:52:32Z","updated_at":"2015-09-28T21:45:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c97078122b81bff357dcd731065e31ba15e9f96b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989/commits","review_comments_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989/comments","review_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/7989/comments","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/4432823108141a2db4e21aff814dc38a83c5f47a","head":{"label":"dimagi:new-mobile-workers","ref":"new-mobile-workers","sha":"4432823108141a2db4e21aff814dc38a83c5f47a","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":247278,"name":"commcare-hq","full_name":"dimagi/commcare-hq","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dimagi/commcare-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-hq","forks_url":"https://api.github.com/repos/dimagi/commcare-hq/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-hq/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-hq/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-hq/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-hq/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-hq/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-hq/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-hq/releases{/id}","created_at":"2009-07-09T17:00:07Z","updated_at":"2015-09-28T17:54:54Z","pushed_at":"2015-09-28T21:37:54Z","git_url":"git://github.com/dimagi/commcare-hq.git","ssh_url":"git@github.com:dimagi/commcare-hq.git","clone_url":"https://github.com/dimagi/commcare-hq.git","svn_url":"https://github.com/dimagi/commcare-hq","homepage":"http://www.commcarehq.org","size":416434,"stargazers_count":51,"watchers_count":51,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"open_issues_count":65,"forks":61,"open_issues":65,"watchers":51,"default_branch":"master"}},"base":{"label":"dimagi:master","ref":"master","sha":"a94e84f6d9d14e89962cbe344798bd5b42aeecf4","user":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"repo":{"id":247278,"name":"commcare-hq","full_name":"dimagi/commcare-hq","owner":{"login":"dimagi","id":94514,"avatar_url":"https://avatars.githubusercontent.com/u/94514?v=3","gravatar_id":"","url":"https://api.github.com/users/dimagi","html_url":"https://github.com/dimagi","followers_url":"https://api.github.com/users/dimagi/followers","following_url":"https://api.github.com/users/dimagi/following{/other_user}","gists_url":"https://api.github.com/users/dimagi/gists{/gist_id}","starred_url":"https://api.github.com/users/dimagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimagi/subscriptions","organizations_url":"https://api.github.com/users/dimagi/orgs","repos_url":"https://api.github.com/users/dimagi/repos","events_url":"https://api.github.com/users/dimagi/events{/privacy}","received_events_url":"https://api.github.com/users/dimagi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dimagi/commcare-hq","description":"A server-side tool to help manage community health workers, written in Django","fork":false,"url":"https://api.github.com/repos/dimagi/commcare-hq","forks_url":"https://api.github.com/repos/dimagi/commcare-hq/forks","keys_url":"https://api.github.com/repos/dimagi/commcare-hq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimagi/commcare-hq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimagi/commcare-hq/teams","hooks_url":"https://api.github.com/repos/dimagi/commcare-hq/hooks","issue_events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/events{/number}","events_url":"https://api.github.com/repos/dimagi/commcare-hq/events","assignees_url":"https://api.github.com/repos/dimagi/commcare-hq/assignees{/user}","branches_url":"https://api.github.com/repos/dimagi/commcare-hq/branches{/branch}","tags_url":"https://api.github.com/repos/dimagi/commcare-hq/tags","blobs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimagi/commcare-hq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimagi/commcare-hq/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimagi/commcare-hq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimagi/commcare-hq/statuses/{sha}","languages_url":"https://api.github.com/repos/dimagi/commcare-hq/languages","stargazers_url":"https://api.github.com/repos/dimagi/commcare-hq/stargazers","contributors_url":"https://api.github.com/repos/dimagi/commcare-hq/contributors","subscribers_url":"https://api.github.com/repos/dimagi/commcare-hq/subscribers","subscription_url":"https://api.github.com/repos/dimagi/commcare-hq/subscription","commits_url":"https://api.github.com/repos/dimagi/commcare-hq/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimagi/commcare-hq/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimagi/commcare-hq/contents/{+path}","compare_url":"https://api.github.com/repos/dimagi/commcare-hq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimagi/commcare-hq/merges","archive_url":"https://api.github.com/repos/dimagi/commcare-hq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimagi/commcare-hq/downloads","issues_url":"https://api.github.com/repos/dimagi/commcare-hq/issues{/number}","pulls_url":"https://api.github.com/repos/dimagi/commcare-hq/pulls{/number}","milestones_url":"https://api.github.com/repos/dimagi/commcare-hq/milestones{/number}","notifications_url":"https://api.github.com/repos/dimagi/commcare-hq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/labels{/name}","releases_url":"https://api.github.com/repos/dimagi/commcare-hq/releases{/id}","created_at":"2009-07-09T17:00:07Z","updated_at":"2015-09-28T17:54:54Z","pushed_at":"2015-09-28T21:37:54Z","git_url":"git://github.com/dimagi/commcare-hq.git","ssh_url":"git@github.com:dimagi/commcare-hq.git","clone_url":"https://github.com/dimagi/commcare-hq.git","svn_url":"https://github.com/dimagi/commcare-hq","homepage":"http://www.commcarehq.org","size":416434,"stargazers_count":51,"watchers_count":51,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"open_issues_count":65,"forks":61,"open_issues":65,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989"},"html":{"href":"https://github.com/dimagi/commcare-hq/pull/7989"},"issue":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/7989"},"comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/issues/7989/comments"},"review_comments":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989/comments"},"review_comment":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dimagi/commcare-hq/pulls/7989/commits"},"statuses":{"href":"https://api.github.com/repos/dimagi/commcare-hq/statuses/4432823108141a2db4e21aff814dc38a83c5f47a"}}}}