{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/25041189","id":25041189,"diff_hunk":"@@ -44,13 +44,17 @@ var LanguageManager = {\n   buildLanguageList: function settings_buildLanguageList() {\n     var container = document.querySelector('#languages ul');\n     container.innerHTML = '';\n+    var selectedLanguageNode = null;\n     LanguageList.get(function fillLanguageList(allLanguages, currentLanguage) {\n       for (var lang in allLanguages) {\n         var input = document.createElement('input');\n         input.type = 'radio';\n         input.name = 'language.current';\n         input.value = lang;\n-        input.checked = (lang === currentLanguage);\n+        if (lang === currentLanguage) {\n+          input.checked = (lang === currentLanguage);","path":"apps/ftu/js/language.js","position":13,"original_position":13,"commit_id":"3d6b3e76780f78333e99c7ce5e3f082e9eca02af","original_commit_id":"3d6b3e76780f78333e99c7ce5e3f082e9eca02af","user":{"login":"sfoster","id":97747,"avatar_url":"https://avatars.githubusercontent.com/u/97747?v=3","gravatar_id":"","url":"https://api.github.com/users/sfoster","html_url":"https://github.com/sfoster","followers_url":"https://api.github.com/users/sfoster/followers","following_url":"https://api.github.com/users/sfoster/following{/other_user}","gists_url":"https://api.github.com/users/sfoster/gists{/gist_id}","starred_url":"https://api.github.com/users/sfoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfoster/subscriptions","organizations_url":"https://api.github.com/users/sfoster/orgs","repos_url":"https://api.github.com/users/sfoster/repos","events_url":"https://api.github.com/users/sfoster/events{/privacy}","received_events_url":"https://api.github.com/users/sfoster/received_events","type":"User","site_admin":false},"body":"Nit: Seems redundant, we know lang == currentLanguage, so maybe just use true here","created_at":"2015-02-20T00:40:21Z","updated_at":"2015-02-20T00:40:21Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/28325#discussion_r25041189","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/25041189"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/28325#discussion_r25041189"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325","id":29663725,"html_url":"https://github.com/mozilla-b2g/gaia/pull/28325","diff_url":"https://github.com/mozilla-b2g/gaia/pull/28325.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/28325.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28325","number":28325,"state":"open","locked":false,"title":"Bug 1085718 - FTU: selected language should be visible (r=sfoster)","user":{"login":"autonome","id":50103,"avatar_url":"https://avatars.githubusercontent.com/u/50103?v=3","gravatar_id":"","url":"https://api.github.com/users/autonome","html_url":"https://github.com/autonome","followers_url":"https://api.github.com/users/autonome/followers","following_url":"https://api.github.com/users/autonome/following{/other_user}","gists_url":"https://api.github.com/users/autonome/gists{/gist_id}","starred_url":"https://api.github.com/users/autonome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autonome/subscriptions","organizations_url":"https://api.github.com/users/autonome/orgs","repos_url":"https://api.github.com/users/autonome/repos","events_url":"https://api.github.com/users/autonome/events{/privacy}","received_events_url":"https://api.github.com/users/autonome/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-20T00:34:39Z","updated_at":"2015-02-20T00:40:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"143efb4ff902517d3ad495c58a81f91ecce74471","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28325/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/3d6b3e76780f78333e99c7ce5e3f082e9eca02af","head":{"label":"autonome:1085718-ftu-selected-lang","ref":"1085718-ftu-selected-lang","sha":"3d6b3e76780f78333e99c7ce5e3f082e9eca02af","user":{"login":"autonome","id":50103,"avatar_url":"https://avatars.githubusercontent.com/u/50103?v=3","gravatar_id":"","url":"https://api.github.com/users/autonome","html_url":"https://github.com/autonome","followers_url":"https://api.github.com/users/autonome/followers","following_url":"https://api.github.com/users/autonome/following{/other_user}","gists_url":"https://api.github.com/users/autonome/gists{/gist_id}","starred_url":"https://api.github.com/users/autonome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autonome/subscriptions","organizations_url":"https://api.github.com/users/autonome/orgs","repos_url":"https://api.github.com/users/autonome/repos","events_url":"https://api.github.com/users/autonome/events{/privacy}","received_events_url":"https://api.github.com/users/autonome/received_events","type":"User","site_admin":false},"repo":{"id":5614678,"name":"gaia","full_name":"autonome/gaia","owner":{"login":"autonome","id":50103,"avatar_url":"https://avatars.githubusercontent.com/u/50103?v=3","gravatar_id":"","url":"https://api.github.com/users/autonome","html_url":"https://github.com/autonome","followers_url":"https://api.github.com/users/autonome/followers","following_url":"https://api.github.com/users/autonome/following{/other_user}","gists_url":"https://api.github.com/users/autonome/gists{/gist_id}","starred_url":"https://api.github.com/users/autonome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autonome/subscriptions","organizations_url":"https://api.github.com/users/autonome/orgs","repos_url":"https://api.github.com/users/autonome/repos","events_url":"https://api.github.com/users/autonome/events{/privacy}","received_events_url":"https://api.github.com/users/autonome/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/autonome/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project","fork":true,"url":"https://api.github.com/repos/autonome/gaia","forks_url":"https://api.github.com/repos/autonome/gaia/forks","keys_url":"https://api.github.com/repos/autonome/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/autonome/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/autonome/gaia/teams","hooks_url":"https://api.github.com/repos/autonome/gaia/hooks","issue_events_url":"https://api.github.com/repos/autonome/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/autonome/gaia/events","assignees_url":"https://api.github.com/repos/autonome/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/autonome/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/autonome/gaia/tags","blobs_url":"https://api.github.com/repos/autonome/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/autonome/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/autonome/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/autonome/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/autonome/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/autonome/gaia/languages","stargazers_url":"https://api.github.com/repos/autonome/gaia/stargazers","contributors_url":"https://api.github.com/repos/autonome/gaia/contributors","subscribers_url":"https://api.github.com/repos/autonome/gaia/subscribers","subscription_url":"https://api.github.com/repos/autonome/gaia/subscription","commits_url":"https://api.github.com/repos/autonome/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/autonome/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/autonome/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/autonome/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/autonome/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/autonome/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/autonome/gaia/merges","archive_url":"https://api.github.com/repos/autonome/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/autonome/gaia/downloads","issues_url":"https://api.github.com/repos/autonome/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/autonome/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/autonome/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/autonome/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/autonome/gaia/labels{/name}","releases_url":"https://api.github.com/repos/autonome/gaia/releases{/id}","created_at":"2012-08-30T12:42:43Z","updated_at":"2015-02-20T00:37:31Z","pushed_at":"2015-02-20T00:37:12Z","git_url":"git://github.com/autonome/gaia.git","ssh_url":"git@github.com:autonome/gaia.git","clone_url":"https://github.com/autonome/gaia.git","svn_url":"https://github.com/autonome/gaia","homepage":"https://wiki.mozilla.org/B2G","size":839169,"stargazers_count":0,"watchers_count":0,"language":"XML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"0d9a825dd27ed63f877d5140a08327cc8f91ec74","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-02-19T19:55:41Z","pushed_at":"2015-02-19T19:55:41Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1424910,"stargazers_count":1872,"watchers_count":1872,"language":"XML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2225,"mirror_url":null,"open_issues_count":911,"forks":2225,"open_issues":911,"watchers":1872,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/28325"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28325"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/28325/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/28325/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/3d6b3e76780f78333e99c7ce5e3f082e9eca02af"}}}}