{"action":"created","comment":{"url":"https://api.github.com/repos/piwik/piwik/pulls/comments/50355155","id":50355155,"diff_hunk":"@@ -64,4 +64,43 @@ function initTopControls() {\n         }\n \n     }\n-}\n\\ No newline at end of file\n+}\n+\n+//Tab controls for Top Controls calendar. \n+$( document ).ready(function() {\n+    $('.periodSelector').keydown(function(e){\n+\n+        $('.periodSelector .ui-datepicker-month').attr('tabindex','4');\n+        $('.periodSelector td a').attr('tabindex','4');\n+        $('.periodSelector .ui-datepicker-year').attr('tabindex','4');\n+        $('.periodSelector .form-radio').attr('tabindex','4');\n+\n+        var calendarOpen = $(this).hasClass('expanded');\n+\n+        if(e.which==13){\n+            if(calendarOpen){\n+                $(this).removeClass('expanded');\n+            }else{\n+                $(this).addClass('expanded');\n+            }\n+        }\n+    })\n+\n+    $('.ui-datepicker-month, .ui-datepicker-year, .periodSelector td a').keydown(function(e){","path":"plugins/CoreHome/javascripts/top_controls.js","position":28,"original_position":28,"commit_id":"6e3abdaa1c1a6c9a5712a84ab7d487bbee21a104","original_commit_id":"6e3abdaa1c1a6c9a5712a84ab7d487bbee21a104","user":{"login":"mattab","id":466765,"avatar_url":"https://avatars.githubusercontent.com/u/466765?v=3","gravatar_id":"","url":"https://api.github.com/users/mattab","html_url":"https://github.com/mattab","followers_url":"https://api.github.com/users/mattab/followers","following_url":"https://api.github.com/users/mattab/following{/other_user}","gists_url":"https://api.github.com/users/mattab/gists{/gist_id}","starred_url":"https://api.github.com/users/mattab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattab/subscriptions","organizations_url":"https://api.github.com/users/mattab/orgs","repos_url":"https://api.github.com/users/mattab/repos","events_url":"https://api.github.com/users/mattab/events{/privacy}","received_events_url":"https://api.github.com/users/mattab/received_events","type":"User","site_admin":false},"body":"@Gabriel-Bowater  could you put this code into a function and re-use it below? this will help not duplicate the code","created_at":"2016-01-21T03:01:41Z","updated_at":"2016-01-21T03:01:41Z","html_url":"https://github.com/piwik/piwik/pull/9594#discussion_r50355155","pull_request_url":"https://api.github.com/repos/piwik/piwik/pulls/9594","_links":{"self":{"href":"https://api.github.com/repos/piwik/piwik/pulls/comments/50355155"},"html":{"href":"https://github.com/piwik/piwik/pull/9594#discussion_r50355155"},"pull_request":{"href":"https://api.github.com/repos/piwik/piwik/pulls/9594"}}},"pull_request":{"url":"https://api.github.com/repos/piwik/piwik/pulls/9594","id":56681069,"html_url":"https://github.com/piwik/piwik/pull/9594","diff_url":"https://github.com/piwik/piwik/pull/9594.diff","patch_url":"https://github.com/piwik/piwik/pull/9594.patch","issue_url":"https://api.github.com/repos/piwik/piwik/issues/9594","number":9594,"state":"open","locked":false,"title":"top menu calendar navigable with keyboard.","user":{"login":"Gabriel-Bowater","id":12214495,"avatar_url":"https://avatars.githubusercontent.com/u/12214495?v=3","gravatar_id":"","url":"https://api.github.com/users/Gabriel-Bowater","html_url":"https://github.com/Gabriel-Bowater","followers_url":"https://api.github.com/users/Gabriel-Bowater/followers","following_url":"https://api.github.com/users/Gabriel-Bowater/following{/other_user}","gists_url":"https://api.github.com/users/Gabriel-Bowater/gists{/gist_id}","starred_url":"https://api.github.com/users/Gabriel-Bowater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gabriel-Bowater/subscriptions","organizations_url":"https://api.github.com/users/Gabriel-Bowater/orgs","repos_url":"https://api.github.com/users/Gabriel-Bowater/repos","events_url":"https://api.github.com/users/Gabriel-Bowater/events{/privacy}","received_events_url":"https://api.github.com/users/Gabriel-Bowater/received_events","type":"User","site_admin":false},"body":"fix #9577 ","created_at":"2016-01-20T23:02:18Z","updated_at":"2016-01-21T03:01:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f632e4fba32ab1c1a3bacb33356aaa36ce3fdaab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/piwik/piwik/pulls/9594/commits","review_comments_url":"https://api.github.com/repos/piwik/piwik/pulls/9594/comments","review_comment_url":"https://api.github.com/repos/piwik/piwik/pulls/comments{/number}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/9594/comments","statuses_url":"https://api.github.com/repos/piwik/piwik/statuses/6e3abdaa1c1a6c9a5712a84ab7d487bbee21a104","head":{"label":"Gabriel-Bowater:issue_9577","ref":"issue_9577","sha":"6e3abdaa1c1a6c9a5712a84ab7d487bbee21a104","user":{"login":"Gabriel-Bowater","id":12214495,"avatar_url":"https://avatars.githubusercontent.com/u/12214495?v=3","gravatar_id":"","url":"https://api.github.com/users/Gabriel-Bowater","html_url":"https://github.com/Gabriel-Bowater","followers_url":"https://api.github.com/users/Gabriel-Bowater/followers","following_url":"https://api.github.com/users/Gabriel-Bowater/following{/other_user}","gists_url":"https://api.github.com/users/Gabriel-Bowater/gists{/gist_id}","starred_url":"https://api.github.com/users/Gabriel-Bowater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gabriel-Bowater/subscriptions","organizations_url":"https://api.github.com/users/Gabriel-Bowater/orgs","repos_url":"https://api.github.com/users/Gabriel-Bowater/repos","events_url":"https://api.github.com/users/Gabriel-Bowater/events{/privacy}","received_events_url":"https://api.github.com/users/Gabriel-Bowater/received_events","type":"User","site_admin":false},"repo":{"id":49916546,"name":"piwik","full_name":"Gabriel-Bowater/piwik","owner":{"login":"Gabriel-Bowater","id":12214495,"avatar_url":"https://avatars.githubusercontent.com/u/12214495?v=3","gravatar_id":"","url":"https://api.github.com/users/Gabriel-Bowater","html_url":"https://github.com/Gabriel-Bowater","followers_url":"https://api.github.com/users/Gabriel-Bowater/followers","following_url":"https://api.github.com/users/Gabriel-Bowater/following{/other_user}","gists_url":"https://api.github.com/users/Gabriel-Bowater/gists{/gist_id}","starred_url":"https://api.github.com/users/Gabriel-Bowater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gabriel-Bowater/subscriptions","organizations_url":"https://api.github.com/users/Gabriel-Bowater/orgs","repos_url":"https://api.github.com/users/Gabriel-Bowater/repos","events_url":"https://api.github.com/users/Gabriel-Bowater/events{/privacy}","received_events_url":"https://api.github.com/users/Gabriel-Bowater/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gabriel-Bowater/piwik","description":"Liberating Web Analytics. Star us on Github? +1. Piwik is the leading open alternative to Google Analytics that gives you full control over your data. Piwik lets you easily collect data from websites, apps & the IoT and visualise this data and extract insights. Privacy is built-in. We love Pull Requests! ","fork":true,"url":"https://api.github.com/repos/Gabriel-Bowater/piwik","forks_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/forks","keys_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/teams","hooks_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/hooks","issue_events_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/issues/events{/number}","events_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/events","assignees_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/assignees{/user}","branches_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/branches{/branch}","tags_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/tags","blobs_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/statuses/{sha}","languages_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/languages","stargazers_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/stargazers","contributors_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/contributors","subscribers_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/subscribers","subscription_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/subscription","commits_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/contents/{+path}","compare_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/merges","archive_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/downloads","issues_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/issues{/number}","pulls_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/pulls{/number}","milestones_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/milestones{/number}","notifications_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/labels{/name}","releases_url":"https://api.github.com/repos/Gabriel-Bowater/piwik/releases{/id}","created_at":"2016-01-19T01:09:17Z","updated_at":"2016-01-19T01:09:32Z","pushed_at":"2016-01-21T02:57:43Z","git_url":"git://github.com/Gabriel-Bowater/piwik.git","ssh_url":"git@github.com:Gabriel-Bowater/piwik.git","clone_url":"https://github.com/Gabriel-Bowater/piwik.git","svn_url":"https://github.com/Gabriel-Bowater/piwik","homepage":"http://piwik.org/","size":140969,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"piwik:master","ref":"master","sha":"e7fad292bd602ac16f460c0cffc3c6ede83eab39","user":{"login":"piwik","id":698038,"avatar_url":"https://avatars.githubusercontent.com/u/698038?v=3","gravatar_id":"","url":"https://api.github.com/users/piwik","html_url":"https://github.com/piwik","followers_url":"https://api.github.com/users/piwik/followers","following_url":"https://api.github.com/users/piwik/following{/other_user}","gists_url":"https://api.github.com/users/piwik/gists{/gist_id}","starred_url":"https://api.github.com/users/piwik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piwik/subscriptions","organizations_url":"https://api.github.com/users/piwik/orgs","repos_url":"https://api.github.com/users/piwik/repos","events_url":"https://api.github.com/users/piwik/events{/privacy}","received_events_url":"https://api.github.com/users/piwik/received_events","type":"Organization","site_admin":false},"repo":{"id":1548202,"name":"piwik","full_name":"piwik/piwik","owner":{"login":"piwik","id":698038,"avatar_url":"https://avatars.githubusercontent.com/u/698038?v=3","gravatar_id":"","url":"https://api.github.com/users/piwik","html_url":"https://github.com/piwik","followers_url":"https://api.github.com/users/piwik/followers","following_url":"https://api.github.com/users/piwik/following{/other_user}","gists_url":"https://api.github.com/users/piwik/gists{/gist_id}","starred_url":"https://api.github.com/users/piwik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piwik/subscriptions","organizations_url":"https://api.github.com/users/piwik/orgs","repos_url":"https://api.github.com/users/piwik/repos","events_url":"https://api.github.com/users/piwik/events{/privacy}","received_events_url":"https://api.github.com/users/piwik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/piwik/piwik","description":"Liberating Web Analytics. Star us on Github? +1. Piwik is the leading open alternative to Google Analytics that gives you full control over your data. Piwik lets you easily collect data from websites, apps & the IoT and visualise this data and extract insights. Privacy is built-in. We love Pull Requests! ","fork":false,"url":"https://api.github.com/repos/piwik/piwik","forks_url":"https://api.github.com/repos/piwik/piwik/forks","keys_url":"https://api.github.com/repos/piwik/piwik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piwik/piwik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piwik/piwik/teams","hooks_url":"https://api.github.com/repos/piwik/piwik/hooks","issue_events_url":"https://api.github.com/repos/piwik/piwik/issues/events{/number}","events_url":"https://api.github.com/repos/piwik/piwik/events","assignees_url":"https://api.github.com/repos/piwik/piwik/assignees{/user}","branches_url":"https://api.github.com/repos/piwik/piwik/branches{/branch}","tags_url":"https://api.github.com/repos/piwik/piwik/tags","blobs_url":"https://api.github.com/repos/piwik/piwik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piwik/piwik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piwik/piwik/git/refs{/sha}","trees_url":"https://api.github.com/repos/piwik/piwik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piwik/piwik/statuses/{sha}","languages_url":"https://api.github.com/repos/piwik/piwik/languages","stargazers_url":"https://api.github.com/repos/piwik/piwik/stargazers","contributors_url":"https://api.github.com/repos/piwik/piwik/contributors","subscribers_url":"https://api.github.com/repos/piwik/piwik/subscribers","subscription_url":"https://api.github.com/repos/piwik/piwik/subscription","commits_url":"https://api.github.com/repos/piwik/piwik/commits{/sha}","git_commits_url":"https://api.github.com/repos/piwik/piwik/git/commits{/sha}","comments_url":"https://api.github.com/repos/piwik/piwik/comments{/number}","issue_comment_url":"https://api.github.com/repos/piwik/piwik/issues/comments{/number}","contents_url":"https://api.github.com/repos/piwik/piwik/contents/{+path}","compare_url":"https://api.github.com/repos/piwik/piwik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piwik/piwik/merges","archive_url":"https://api.github.com/repos/piwik/piwik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piwik/piwik/downloads","issues_url":"https://api.github.com/repos/piwik/piwik/issues{/number}","pulls_url":"https://api.github.com/repos/piwik/piwik/pulls{/number}","milestones_url":"https://api.github.com/repos/piwik/piwik/milestones{/number}","notifications_url":"https://api.github.com/repos/piwik/piwik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piwik/piwik/labels{/name}","releases_url":"https://api.github.com/repos/piwik/piwik/releases{/id}","created_at":"2011-03-30T21:18:17Z","updated_at":"2016-01-20T18:16:00Z","pushed_at":"2016-01-21T02:59:42Z","git_url":"git://github.com/piwik/piwik.git","ssh_url":"git@github.com:piwik/piwik.git","clone_url":"https://github.com/piwik/piwik.git","svn_url":"https://github.com/piwik/piwik","homepage":"http://piwik.org/","size":152943,"stargazers_count":5045,"watchers_count":5045,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":897,"mirror_url":null,"open_issues_count":1226,"forks":897,"open_issues":1226,"watchers":5045,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/piwik/piwik/pulls/9594"},"html":{"href":"https://github.com/piwik/piwik/pull/9594"},"issue":{"href":"https://api.github.com/repos/piwik/piwik/issues/9594"},"comments":{"href":"https://api.github.com/repos/piwik/piwik/issues/9594/comments"},"review_comments":{"href":"https://api.github.com/repos/piwik/piwik/pulls/9594/comments"},"review_comment":{"href":"https://api.github.com/repos/piwik/piwik/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/piwik/piwik/pulls/9594/commits"},"statuses":{"href":"https://api.github.com/repos/piwik/piwik/statuses/6e3abdaa1c1a6c9a5712a84ab7d487bbee21a104"}}}}