{"action":"created","comment":{"url":"https://api.github.com/repos/fguillot/kanboard/pulls/comments/33528072","id":33528072,"diff_hunk":"@@ -0,0 +1,36 @@\n+$(document).keydown(function(e) {\n+    var task_id = GetURLParameter('task_id');\n+    var project_id = GetURLParameter('project_id');\n+\n+    Mousetrap.bind(\"i\", function() {\n+        var url = window.location.origin + window.location.pathname + '?controller=board&action=assignToMe&task_id=' + task_id + '&project_id=' + project_id;\n+        $.ajax({\n+            url: url,\n+            type: \"POST\",\n+            success: function(data, textStatus, jqXHR) {\n+                location.reload();\n+            },\n+            error: function(jqXHR, textStatus, errorThrown) {\n+                console.log('jqXHR: ' + jqXHR);","path":"assets/js/keyboardShortcuts.js","position":14,"original_position":14,"commit_id":"e2b96ef7dd5596349223b809e108d596e9b74549","original_commit_id":"e2b96ef7dd5596349223b809e108d596e9b74549","user":{"login":"fguillot","id":323546,"avatar_url":"https://avatars.githubusercontent.com/u/323546?v=3","gravatar_id":"","url":"https://api.github.com/users/fguillot","html_url":"https://github.com/fguillot","followers_url":"https://api.github.com/users/fguillot/followers","following_url":"https://api.github.com/users/fguillot/following{/other_user}","gists_url":"https://api.github.com/users/fguillot/gists{/gist_id}","starred_url":"https://api.github.com/users/fguillot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fguillot/subscriptions","organizations_url":"https://api.github.com/users/fguillot/orgs","repos_url":"https://api.github.com/users/fguillot/repos","events_url":"https://api.github.com/users/fguillot/events{/privacy}","received_events_url":"https://api.github.com/users/fguillot/received_events","type":"User","site_admin":false},"body":"console.log() calls should be removed","created_at":"2015-06-29T23:56:58Z","updated_at":"2015-06-29T23:56:58Z","html_url":"https://github.com/fguillot/kanboard/pull/960#discussion_r33528072","pull_request_url":"https://api.github.com/repos/fguillot/kanboard/pulls/960","_links":{"self":{"href":"https://api.github.com/repos/fguillot/kanboard/pulls/comments/33528072"},"html":{"href":"https://github.com/fguillot/kanboard/pull/960#discussion_r33528072"},"pull_request":{"href":"https://api.github.com/repos/fguillot/kanboard/pulls/960"}}},"pull_request":{"url":"https://api.github.com/repos/fguillot/kanboard/pulls/960","id":38769203,"html_url":"https://github.com/fguillot/kanboard/pull/960","diff_url":"https://github.com/fguillot/kanboard/pull/960.diff","patch_url":"https://github.com/fguillot/kanboard/pull/960.patch","issue_url":"https://api.github.com/repos/fguillot/kanboard/issues/960","number":960,"state":"open","locked":false,"title":"added two keyboard shortcuts within the task view","user":{"login":"wiebkem","id":4256961,"avatar_url":"https://avatars.githubusercontent.com/u/4256961?v=3","gravatar_id":"","url":"https://api.github.com/users/wiebkem","html_url":"https://github.com/wiebkem","followers_url":"https://api.github.com/users/wiebkem/followers","following_url":"https://api.github.com/users/wiebkem/following{/other_user}","gists_url":"https://api.github.com/users/wiebkem/gists{/gist_id}","starred_url":"https://api.github.com/users/wiebkem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiebkem/subscriptions","organizations_url":"https://api.github.com/users/wiebkem/orgs","repos_url":"https://api.github.com/users/wiebkem/repos","events_url":"https://api.github.com/users/wiebkem/events{/privacy}","received_events_url":"https://api.github.com/users/wiebkem/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nI added two keyboard shortcuts within the task view:\r\ni: assign to me\r\nb: back to the board","created_at":"2015-06-29T12:40:17Z","updated_at":"2015-06-29T23:56:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"195719aa2b1b3b9d012c4a83d6ccedaf66be33ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fguillot/kanboard/pulls/960/commits","review_comments_url":"https://api.github.com/repos/fguillot/kanboard/pulls/960/comments","review_comment_url":"https://api.github.com/repos/fguillot/kanboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fguillot/kanboard/issues/960/comments","statuses_url":"https://api.github.com/repos/fguillot/kanboard/statuses/e2b96ef7dd5596349223b809e108d596e9b74549","head":{"label":"wiebkem:feature/keyboard-shortcut-within-task-view","ref":"feature/keyboard-shortcut-within-task-view","sha":"e2b96ef7dd5596349223b809e108d596e9b74549","user":{"login":"wiebkem","id":4256961,"avatar_url":"https://avatars.githubusercontent.com/u/4256961?v=3","gravatar_id":"","url":"https://api.github.com/users/wiebkem","html_url":"https://github.com/wiebkem","followers_url":"https://api.github.com/users/wiebkem/followers","following_url":"https://api.github.com/users/wiebkem/following{/other_user}","gists_url":"https://api.github.com/users/wiebkem/gists{/gist_id}","starred_url":"https://api.github.com/users/wiebkem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiebkem/subscriptions","organizations_url":"https://api.github.com/users/wiebkem/orgs","repos_url":"https://api.github.com/users/wiebkem/repos","events_url":"https://api.github.com/users/wiebkem/events{/privacy}","received_events_url":"https://api.github.com/users/wiebkem/received_events","type":"User","site_admin":false},"repo":{"id":38245463,"name":"kanboard","full_name":"wiebkem/kanboard","owner":{"login":"wiebkem","id":4256961,"avatar_url":"https://avatars.githubusercontent.com/u/4256961?v=3","gravatar_id":"","url":"https://api.github.com/users/wiebkem","html_url":"https://github.com/wiebkem","followers_url":"https://api.github.com/users/wiebkem/followers","following_url":"https://api.github.com/users/wiebkem/following{/other_user}","gists_url":"https://api.github.com/users/wiebkem/gists{/gist_id}","starred_url":"https://api.github.com/users/wiebkem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiebkem/subscriptions","organizations_url":"https://api.github.com/users/wiebkem/orgs","repos_url":"https://api.github.com/users/wiebkem/repos","events_url":"https://api.github.com/users/wiebkem/events{/privacy}","received_events_url":"https://api.github.com/users/wiebkem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wiebkem/kanboard","description":"Simple visual task board","fork":true,"url":"https://api.github.com/repos/wiebkem/kanboard","forks_url":"https://api.github.com/repos/wiebkem/kanboard/forks","keys_url":"https://api.github.com/repos/wiebkem/kanboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wiebkem/kanboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wiebkem/kanboard/teams","hooks_url":"https://api.github.com/repos/wiebkem/kanboard/hooks","issue_events_url":"https://api.github.com/repos/wiebkem/kanboard/issues/events{/number}","events_url":"https://api.github.com/repos/wiebkem/kanboard/events","assignees_url":"https://api.github.com/repos/wiebkem/kanboard/assignees{/user}","branches_url":"https://api.github.com/repos/wiebkem/kanboard/branches{/branch}","tags_url":"https://api.github.com/repos/wiebkem/kanboard/tags","blobs_url":"https://api.github.com/repos/wiebkem/kanboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wiebkem/kanboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wiebkem/kanboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/wiebkem/kanboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wiebkem/kanboard/statuses/{sha}","languages_url":"https://api.github.com/repos/wiebkem/kanboard/languages","stargazers_url":"https://api.github.com/repos/wiebkem/kanboard/stargazers","contributors_url":"https://api.github.com/repos/wiebkem/kanboard/contributors","subscribers_url":"https://api.github.com/repos/wiebkem/kanboard/subscribers","subscription_url":"https://api.github.com/repos/wiebkem/kanboard/subscription","commits_url":"https://api.github.com/repos/wiebkem/kanboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/wiebkem/kanboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/wiebkem/kanboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/wiebkem/kanboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/wiebkem/kanboard/contents/{+path}","compare_url":"https://api.github.com/repos/wiebkem/kanboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wiebkem/kanboard/merges","archive_url":"https://api.github.com/repos/wiebkem/kanboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wiebkem/kanboard/downloads","issues_url":"https://api.github.com/repos/wiebkem/kanboard/issues{/number}","pulls_url":"https://api.github.com/repos/wiebkem/kanboard/pulls{/number}","milestones_url":"https://api.github.com/repos/wiebkem/kanboard/milestones{/number}","notifications_url":"https://api.github.com/repos/wiebkem/kanboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wiebkem/kanboard/labels{/name}","releases_url":"https://api.github.com/repos/wiebkem/kanboard/releases{/id}","created_at":"2015-06-29T12:01:33Z","updated_at":"2015-06-29T12:01:35Z","pushed_at":"2015-06-29T14:04:33Z","git_url":"git://github.com/wiebkem/kanboard.git","ssh_url":"git@github.com:wiebkem/kanboard.git","clone_url":"https://github.com/wiebkem/kanboard.git","svn_url":"https://github.com/wiebkem/kanboard","homepage":"http://kanboard.net","size":22293,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"fguillot:master","ref":"master","sha":"3f084916e3befbaadf8dc86c8329a408dfcdf351","user":{"login":"fguillot","id":323546,"avatar_url":"https://avatars.githubusercontent.com/u/323546?v=3","gravatar_id":"","url":"https://api.github.com/users/fguillot","html_url":"https://github.com/fguillot","followers_url":"https://api.github.com/users/fguillot/followers","following_url":"https://api.github.com/users/fguillot/following{/other_user}","gists_url":"https://api.github.com/users/fguillot/gists{/gist_id}","starred_url":"https://api.github.com/users/fguillot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fguillot/subscriptions","organizations_url":"https://api.github.com/users/fguillot/orgs","repos_url":"https://api.github.com/users/fguillot/repos","events_url":"https://api.github.com/users/fguillot/events{/privacy}","received_events_url":"https://api.github.com/users/fguillot/received_events","type":"User","site_admin":false},"repo":{"id":16238673,"name":"kanboard","full_name":"fguillot/kanboard","owner":{"login":"fguillot","id":323546,"avatar_url":"https://avatars.githubusercontent.com/u/323546?v=3","gravatar_id":"","url":"https://api.github.com/users/fguillot","html_url":"https://github.com/fguillot","followers_url":"https://api.github.com/users/fguillot/followers","following_url":"https://api.github.com/users/fguillot/following{/other_user}","gists_url":"https://api.github.com/users/fguillot/gists{/gist_id}","starred_url":"https://api.github.com/users/fguillot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fguillot/subscriptions","organizations_url":"https://api.github.com/users/fguillot/orgs","repos_url":"https://api.github.com/users/fguillot/repos","events_url":"https://api.github.com/users/fguillot/events{/privacy}","received_events_url":"https://api.github.com/users/fguillot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fguillot/kanboard","description":"Simple visual task board","fork":false,"url":"https://api.github.com/repos/fguillot/kanboard","forks_url":"https://api.github.com/repos/fguillot/kanboard/forks","keys_url":"https://api.github.com/repos/fguillot/kanboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fguillot/kanboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fguillot/kanboard/teams","hooks_url":"https://api.github.com/repos/fguillot/kanboard/hooks","issue_events_url":"https://api.github.com/repos/fguillot/kanboard/issues/events{/number}","events_url":"https://api.github.com/repos/fguillot/kanboard/events","assignees_url":"https://api.github.com/repos/fguillot/kanboard/assignees{/user}","branches_url":"https://api.github.com/repos/fguillot/kanboard/branches{/branch}","tags_url":"https://api.github.com/repos/fguillot/kanboard/tags","blobs_url":"https://api.github.com/repos/fguillot/kanboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fguillot/kanboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fguillot/kanboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/fguillot/kanboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fguillot/kanboard/statuses/{sha}","languages_url":"https://api.github.com/repos/fguillot/kanboard/languages","stargazers_url":"https://api.github.com/repos/fguillot/kanboard/stargazers","contributors_url":"https://api.github.com/repos/fguillot/kanboard/contributors","subscribers_url":"https://api.github.com/repos/fguillot/kanboard/subscribers","subscription_url":"https://api.github.com/repos/fguillot/kanboard/subscription","commits_url":"https://api.github.com/repos/fguillot/kanboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/fguillot/kanboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/fguillot/kanboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/fguillot/kanboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/fguillot/kanboard/contents/{+path}","compare_url":"https://api.github.com/repos/fguillot/kanboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fguillot/kanboard/merges","archive_url":"https://api.github.com/repos/fguillot/kanboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fguillot/kanboard/downloads","issues_url":"https://api.github.com/repos/fguillot/kanboard/issues{/number}","pulls_url":"https://api.github.com/repos/fguillot/kanboard/pulls{/number}","milestones_url":"https://api.github.com/repos/fguillot/kanboard/milestones{/number}","notifications_url":"https://api.github.com/repos/fguillot/kanboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fguillot/kanboard/labels{/name}","releases_url":"https://api.github.com/repos/fguillot/kanboard/releases{/id}","created_at":"2014-01-25T19:58:30Z","updated_at":"2015-06-29T21:21:17Z","pushed_at":"2015-06-29T14:04:01Z","git_url":"git://github.com/fguillot/kanboard.git","ssh_url":"git@github.com:fguillot/kanboard.git","clone_url":"https://github.com/fguillot/kanboard.git","svn_url":"https://github.com/fguillot/kanboard","homepage":"http://kanboard.net","size":22293,"stargazers_count":779,"watchers_count":779,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":253,"mirror_url":null,"open_issues_count":185,"forks":253,"open_issues":185,"watchers":779,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fguillot/kanboard/pulls/960"},"html":{"href":"https://github.com/fguillot/kanboard/pull/960"},"issue":{"href":"https://api.github.com/repos/fguillot/kanboard/issues/960"},"comments":{"href":"https://api.github.com/repos/fguillot/kanboard/issues/960/comments"},"review_comments":{"href":"https://api.github.com/repos/fguillot/kanboard/pulls/960/comments"},"review_comment":{"href":"https://api.github.com/repos/fguillot/kanboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fguillot/kanboard/pulls/960/commits"},"statuses":{"href":"https://api.github.com/repos/fguillot/kanboard/statuses/e2b96ef7dd5596349223b809e108d596e9b74549"}}}}