{"action":"created","comment":{"url":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/comments/62281322","id":62281322,"diff_hunk":"@@ -69,6 +69,51 @@\n                 this.$form = $container.find('form');\n                 this.$errors = $container.find('.submission-error');\n                 this.$submitButton = $container.find(this.submitButton);\n+                this.setUserCityAndCountry();\n+                this.showPassword();\n+                this.getUsernameFromEmail();\n+                this.styleShowPassword();\n+            },\n+\n+            styleShowPassword: function() {\n+                $('input#register-show_password').css('display', 'none');\n+                $('div.form-field.checkbox-show_password label').css({\n+                  'font-size': '0.8rem',\n+                  'color': '#27aae1',\n+                  'float': 'right'\n+                });\n+                $('.form-field.checkbox-show_password').css({\n+                  'margin-top': '-20px',\n+                  'top': '-50px'\n+                });\n+            },\n+\n+            setUserCityAndCountry: function() {\n+                $.get(\n+                   '/geo',\n+                   function(response) {\n+                      if(typeof response.country !== \"undefined\") {\n+                          $('#register-country').val(response.country);\n+                      }\n+                   }\n+                );\n+            },\n+\n+            showPassword: function() {\n+                var password = $('#register-show_password');\n+                password.click(function() {\n+                    $('#register-password').get(0).type = (this.checked) ? 'text' : 'password';\n+                });","path":"lms/static/js/student_account/views/FormView.js","position":38,"original_position":38,"commit_id":"42a73fd20ebc499c0a45509ec8d3b569277d6c38","original_commit_id":"42a73fd20ebc499c0a45509ec8d3b569277d6c38","user":{"login":"lgfa29","id":775380,"avatar_url":"https://avatars.githubusercontent.com/u/775380?v=3","gravatar_id":"","url":"https://api.github.com/users/lgfa29","html_url":"https://github.com/lgfa29","followers_url":"https://api.github.com/users/lgfa29/followers","following_url":"https://api.github.com/users/lgfa29/following{/other_user}","gists_url":"https://api.github.com/users/lgfa29/gists{/gist_id}","starred_url":"https://api.github.com/users/lgfa29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgfa29/subscriptions","organizations_url":"https://api.github.com/users/lgfa29/orgs","repos_url":"https://api.github.com/users/lgfa29/repos","events_url":"https://api.github.com/users/lgfa29/events{/privacy}","received_events_url":"https://api.github.com/users/lgfa29/received_events","type":"User","site_admin":false},"body":"label should change to \"Hide password\" when clicked","created_at":"2016-05-06T02:02:55Z","updated_at":"2016-05-06T02:02:55Z","html_url":"https://github.com/bigdatauniversity/edx-platform/pull/15#discussion_r62281322","pull_request_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/comments/62281322"},"html":{"href":"https://github.com/bigdatauniversity/edx-platform/pull/15#discussion_r62281322"},"pull_request":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15","id":68348315,"html_url":"https://github.com/bigdatauniversity/edx-platform/pull/15","diff_url":"https://github.com/bigdatauniversity/edx-platform/pull/15.diff","patch_url":"https://github.com/bigdatauniversity/edx-platform/pull/15.patch","issue_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/issues/15","number":15,"state":"open","locked":false,"title":"[#118026517] Customize signup form","user":{"login":"andela-kerinoso","id":12392709,"avatar_url":"https://avatars.githubusercontent.com/u/12392709?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-kerinoso","html_url":"https://github.com/andela-kerinoso","followers_url":"https://api.github.com/users/andela-kerinoso/followers","following_url":"https://api.github.com/users/andela-kerinoso/following{/other_user}","gists_url":"https://api.github.com/users/andela-kerinoso/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-kerinoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-kerinoso/subscriptions","organizations_url":"https://api.github.com/users/andela-kerinoso/orgs","repos_url":"https://api.github.com/users/andela-kerinoso/repos","events_url":"https://api.github.com/users/andela-kerinoso/events{/privacy}","received_events_url":"https://api.github.com/users/andela-kerinoso/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-29T09:57:20Z","updated_at":"2016-05-06T02:02:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4475c93f5339fde42af6636494eced7f00b2411","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15/commits","review_comments_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15/comments","review_comment_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/issues/15/comments","statuses_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/statuses/42a73fd20ebc499c0a45509ec8d3b569277d6c38","head":{"label":"andela-kerinoso:signup-form","ref":"signup-form","sha":"42a73fd20ebc499c0a45509ec8d3b569277d6c38","user":{"login":"andela-kerinoso","id":12392709,"avatar_url":"https://avatars.githubusercontent.com/u/12392709?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-kerinoso","html_url":"https://github.com/andela-kerinoso","followers_url":"https://api.github.com/users/andela-kerinoso/followers","following_url":"https://api.github.com/users/andela-kerinoso/following{/other_user}","gists_url":"https://api.github.com/users/andela-kerinoso/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-kerinoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-kerinoso/subscriptions","organizations_url":"https://api.github.com/users/andela-kerinoso/orgs","repos_url":"https://api.github.com/users/andela-kerinoso/repos","events_url":"https://api.github.com/users/andela-kerinoso/events{/privacy}","received_events_url":"https://api.github.com/users/andela-kerinoso/received_events","type":"User","site_admin":false},"repo":{"id":57253116,"name":"edx-platform","full_name":"andela-kerinoso/edx-platform","owner":{"login":"andela-kerinoso","id":12392709,"avatar_url":"https://avatars.githubusercontent.com/u/12392709?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-kerinoso","html_url":"https://github.com/andela-kerinoso","followers_url":"https://api.github.com/users/andela-kerinoso/followers","following_url":"https://api.github.com/users/andela-kerinoso/following{/other_user}","gists_url":"https://api.github.com/users/andela-kerinoso/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-kerinoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-kerinoso/subscriptions","organizations_url":"https://api.github.com/users/andela-kerinoso/orgs","repos_url":"https://api.github.com/users/andela-kerinoso/repos","events_url":"https://api.github.com/users/andela-kerinoso/events{/privacy}","received_events_url":"https://api.github.com/users/andela-kerinoso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-kerinoso/edx-platform","description":"The Open edX platform, the software that powers edX!","fork":true,"url":"https://api.github.com/repos/andela-kerinoso/edx-platform","forks_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/forks","keys_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/teams","hooks_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/events","assignees_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/tags","blobs_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/languages","stargazers_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/subscription","commits_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/merges","archive_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/downloads","issues_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/andela-kerinoso/edx-platform/deployments","created_at":"2016-04-27T22:30:41Z","updated_at":"2016-04-27T22:31:11Z","pushed_at":"2016-05-05T16:34:33Z","git_url":"git://github.com/andela-kerinoso/edx-platform.git","ssh_url":"git@github.com:andela-kerinoso/edx-platform.git","clone_url":"https://github.com/andela-kerinoso/edx-platform.git","svn_url":"https://github.com/andela-kerinoso/edx-platform","homepage":"http://open.edx.org/","size":506948,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"bigdatauniversity:master","ref":"master","sha":"d1ecdda3ace8e879b41cb5f4792791644c7431af","user":{"login":"bigdatauniversity","id":15719167,"avatar_url":"https://avatars.githubusercontent.com/u/15719167?v=3","gravatar_id":"","url":"https://api.github.com/users/bigdatauniversity","html_url":"https://github.com/bigdatauniversity","followers_url":"https://api.github.com/users/bigdatauniversity/followers","following_url":"https://api.github.com/users/bigdatauniversity/following{/other_user}","gists_url":"https://api.github.com/users/bigdatauniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/bigdatauniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigdatauniversity/subscriptions","organizations_url":"https://api.github.com/users/bigdatauniversity/orgs","repos_url":"https://api.github.com/users/bigdatauniversity/repos","events_url":"https://api.github.com/users/bigdatauniversity/events{/privacy}","received_events_url":"https://api.github.com/users/bigdatauniversity/received_events","type":"Organization","site_admin":false},"repo":{"id":52503565,"name":"edx-platform","full_name":"bigdatauniversity/edx-platform","owner":{"login":"bigdatauniversity","id":15719167,"avatar_url":"https://avatars.githubusercontent.com/u/15719167?v=3","gravatar_id":"","url":"https://api.github.com/users/bigdatauniversity","html_url":"https://github.com/bigdatauniversity","followers_url":"https://api.github.com/users/bigdatauniversity/followers","following_url":"https://api.github.com/users/bigdatauniversity/following{/other_user}","gists_url":"https://api.github.com/users/bigdatauniversity/gists{/gist_id}","starred_url":"https://api.github.com/users/bigdatauniversity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigdatauniversity/subscriptions","organizations_url":"https://api.github.com/users/bigdatauniversity/orgs","repos_url":"https://api.github.com/users/bigdatauniversity/repos","events_url":"https://api.github.com/users/bigdatauniversity/events{/privacy}","received_events_url":"https://api.github.com/users/bigdatauniversity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bigdatauniversity/edx-platform","description":"The Open edX platform, the software that powers edX!","fork":true,"url":"https://api.github.com/repos/bigdatauniversity/edx-platform","forks_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/forks","keys_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/teams","hooks_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/events","assignees_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/tags","blobs_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/languages","stargazers_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/subscription","commits_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/merges","archive_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/downloads","issues_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/bigdatauniversity/edx-platform/deployments","created_at":"2016-02-25T06:52:54Z","updated_at":"2016-02-25T06:53:23Z","pushed_at":"2016-05-06T01:45:56Z","git_url":"git://github.com/bigdatauniversity/edx-platform.git","ssh_url":"git@github.com:bigdatauniversity/edx-platform.git","clone_url":"https://github.com/bigdatauniversity/edx-platform.git","svn_url":"https://github.com/bigdatauniversity/edx-platform","homepage":"http://open.edx.org/","size":564588,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15"},"html":{"href":"https://github.com/bigdatauniversity/edx-platform/pull/15"},"issue":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/issues/15"},"comments":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/bigdatauniversity/edx-platform/statuses/42a73fd20ebc499c0a45509ec8d3b569277d6c38"}}}}