Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-04-24 22:01:52 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-04-24 22:01:52 +0300
commitaace81ca371085f8cbd92a1c10180860e5208209 (patch)
tree1ba2772fda8cdfad520160e2b06a014e7473a31a /app/assets
parent7acea6bde9dbffafc99401eb0d7bb748c1f06d3f (diff)
Allow middle-click on a Todo row to open in a new tab
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/todos.js.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/todos.js.coffee b/app/assets/javascripts/todos.js.coffee
index 10e698d6a54..10bef96f43d 100644
--- a/app/assets/javascripts/todos.js.coffee
+++ b/app/assets/javascripts/todos.js.coffee
@@ -102,7 +102,8 @@ class @Todos
todoLink = $(this).data('url')
return unless todoLink
- if e.metaKey
+ # Allow Meta-Click or Mouse3-click to open in a new tab
+ if e.metaKey or e.which is 2
e.preventDefault()
window.open(todoLink,'_blank')
else