{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/28688874","id":28688874,"diff_hunk":"@@ -0,0 +1,64 @@\n+/*\n+ * This file is part of INSPIRE.\n+ * Copyright (C) 2013, 2014 CERN.\n+ *\n+ * INSPIRE is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License as\n+ * published by the Free Software Foundation; either version 2 of the\n+ * License, or (at your option) any later version.\n+ *\n+ * INSPIRE is distributed in the hope that it will be useful, but\n+ * WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+ * General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with INSPIRE; if not, write to the Free Software Foundation, Inc.,\n+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.\n+ */\n+\n+define(\n+  [\n+    'jquery',\n+    'flight/lib/component'\n+  ],\n+  function(\n+    $,\n+    defineComponent) {\n+\n+    \"use strict\";\n+\n+    return defineComponent(BatchActionHotkeys);\n+\n+    function BatchActionHotkeys() {\n+      this.batchActions = function(event) {\n+        var keyCodes = {\n+          rKey: 82,\n+          aKey: 65,\n+          cKey: 67\n+        };\n+\n+        if (event.altKey && event.keyCode == keyCodes.aKey) {\n+          $.event.trigger(\"execute\", {\"command\": \"accept\"});","path":"inspire/modules/workflows/static/js/workflows/actions/batch_action_hotkeys.js","position":42,"original_position":42,"commit_id":"2f19dd8621157e1b78897ecfd32b6618973ef15e","original_commit_id":"2f19dd8621157e1b78897ecfd32b6618973ef15e","user":{"login":"jalavik","id":633680,"avatar_url":"https://avatars.githubusercontent.com/u/633680?v=3","gravatar_id":"","url":"https://api.github.com/users/jalavik","html_url":"https://github.com/jalavik","followers_url":"https://api.github.com/users/jalavik/followers","following_url":"https://api.github.com/users/jalavik/following{/other_user}","gists_url":"https://api.github.com/users/jalavik/gists{/gist_id}","starred_url":"https://api.github.com/users/jalavik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalavik/subscriptions","organizations_url":"https://api.github.com/users/jalavik/orgs","repos_url":"https://api.github.com/users/jalavik/repos","events_url":"https://api.github.com/users/jalavik/events{/privacy}","received_events_url":"https://api.github.com/users/jalavik/received_events","type":"User","site_admin":false},"body":"Here we could use `this.trigger(`","created_at":"2015-04-20T13:42:07Z","updated_at":"2015-04-20T13:42:07Z","html_url":"https://github.com/inspirehep/inspire-next/pull/228#discussion_r28688874","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/28688874"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/228#discussion_r28688874"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228","id":33665811,"html_url":"https://github.com/inspirehep/inspire-next/pull/228","diff_url":"https://github.com/inspirehep/inspire-next/pull/228.diff","patch_url":"https://github.com/inspirehep/inspire-next/pull/228.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/228","number":228,"state":"open","locked":false,"title":"inspire hotkeys: implementation of events","user":{"login":"Lilykos","id":2445433,"avatar_url":"https://avatars.githubusercontent.com/u/2445433?v=3","gravatar_id":"","url":"https://api.github.com/users/Lilykos","html_url":"https://github.com/Lilykos","followers_url":"https://api.github.com/users/Lilykos/followers","following_url":"https://api.github.com/users/Lilykos/following{/other_user}","gists_url":"https://api.github.com/users/Lilykos/gists{/gist_id}","starred_url":"https://api.github.com/users/Lilykos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lilykos/subscriptions","organizations_url":"https://api.github.com/users/Lilykos/orgs","repos_url":"https://api.github.com/users/Lilykos/repos","events_url":"https://api.github.com/users/Lilykos/events{/privacy}","received_events_url":"https://api.github.com/users/Lilykos/received_events","type":"User","site_admin":false},"body":"* Implemented the events for batch actions (accept, accept core, reject) and set the groundwork for implementing them on the backend.\r\n\r\nAuthored-by: Ilias Koutsakis <ilias.koutsakis@cern.ch>","created_at":"2015-04-20T13:37:07Z","updated_at":"2015-04-20T13:42:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc792030d2453cd627b73cb25b279a5fb0a2d984","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/228/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/2f19dd8621157e1b78897ecfd32b6618973ef15e","head":{"label":"Lilykos:keycodes","ref":"keycodes","sha":"2f19dd8621157e1b78897ecfd32b6618973ef15e","user":{"login":"Lilykos","id":2445433,"avatar_url":"https://avatars.githubusercontent.com/u/2445433?v=3","gravatar_id":"","url":"https://api.github.com/users/Lilykos","html_url":"https://github.com/Lilykos","followers_url":"https://api.github.com/users/Lilykos/followers","following_url":"https://api.github.com/users/Lilykos/following{/other_user}","gists_url":"https://api.github.com/users/Lilykos/gists{/gist_id}","starred_url":"https://api.github.com/users/Lilykos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lilykos/subscriptions","organizations_url":"https://api.github.com/users/Lilykos/orgs","repos_url":"https://api.github.com/users/Lilykos/repos","events_url":"https://api.github.com/users/Lilykos/events{/privacy}","received_events_url":"https://api.github.com/users/Lilykos/received_events","type":"User","site_admin":false},"repo":{"id":33939269,"name":"inspire-next","full_name":"Lilykos/inspire-next","owner":{"login":"Lilykos","id":2445433,"avatar_url":"https://avatars.githubusercontent.com/u/2445433?v=3","gravatar_id":"","url":"https://api.github.com/users/Lilykos","html_url":"https://github.com/Lilykos","followers_url":"https://api.github.com/users/Lilykos/followers","following_url":"https://api.github.com/users/Lilykos/following{/other_user}","gists_url":"https://api.github.com/users/Lilykos/gists{/gist_id}","starred_url":"https://api.github.com/users/Lilykos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lilykos/subscriptions","organizations_url":"https://api.github.com/users/Lilykos/orgs","repos_url":"https://api.github.com/users/Lilykos/repos","events_url":"https://api.github.com/users/Lilykos/events{/privacy}","received_events_url":"https://api.github.com/users/Lilykos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Lilykos/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":true,"url":"https://api.github.com/repos/Lilykos/inspire-next","forks_url":"https://api.github.com/repos/Lilykos/inspire-next/forks","keys_url":"https://api.github.com/repos/Lilykos/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lilykos/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lilykos/inspire-next/teams","hooks_url":"https://api.github.com/repos/Lilykos/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/Lilykos/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/Lilykos/inspire-next/events","assignees_url":"https://api.github.com/repos/Lilykos/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/Lilykos/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/Lilykos/inspire-next/tags","blobs_url":"https://api.github.com/repos/Lilykos/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lilykos/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lilykos/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lilykos/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lilykos/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/Lilykos/inspire-next/languages","stargazers_url":"https://api.github.com/repos/Lilykos/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/Lilykos/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/Lilykos/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/Lilykos/inspire-next/subscription","commits_url":"https://api.github.com/repos/Lilykos/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lilykos/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lilykos/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lilykos/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lilykos/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/Lilykos/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lilykos/inspire-next/merges","archive_url":"https://api.github.com/repos/Lilykos/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lilykos/inspire-next/downloads","issues_url":"https://api.github.com/repos/Lilykos/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/Lilykos/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/Lilykos/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/Lilykos/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lilykos/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/Lilykos/inspire-next/releases{/id}","created_at":"2015-04-14T15:13:19Z","updated_at":"2015-04-14T15:13:20Z","pushed_at":"2015-04-20T13:36:36Z","git_url":"git://github.com/Lilykos/inspire-next.git","ssh_url":"git@github.com:Lilykos/inspire-next.git","clone_url":"https://github.com/Lilykos/inspire-next.git","svn_url":"https://github.com/Lilykos/inspire-next","homepage":null,"size":5807,"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":"inspirehep:master","ref":"master","sha":"3613d7733e44193fc9700d57be6ba4fd7f8b45e0","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":15221515,"name":"inspire-next","full_name":"inspirehep/inspire-next","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire-next","forks_url":"https://api.github.com/repos/inspirehep/inspire-next/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire-next/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire-next/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire-next/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire-next/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire-next/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire-next/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire-next/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire-next/releases{/id}","created_at":"2013-12-16T09:11:58Z","updated_at":"2015-04-20T13:21:48Z","pushed_at":"2015-04-20T13:37:08Z","git_url":"git://github.com/inspirehep/inspire-next.git","ssh_url":"git@github.com:inspirehep/inspire-next.git","clone_url":"https://github.com/inspirehep/inspire-next.git","svn_url":"https://github.com/inspirehep/inspire-next","homepage":null,"size":9437,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":18,"forks":13,"open_issues":18,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/228"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/228"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/228/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/228/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-next/statuses/2f19dd8621157e1b78897ecfd32b6618973ef15e"}}}}