diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-04-24 22:01:52 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-04-24 22:01:52 +0300 |
commit | aace81ca371085f8cbd92a1c10180860e5208209 (patch) | |
tree | 1ba2772fda8cdfad520160e2b06a014e7473a31a /app/assets | |
parent | 7acea6bde9dbffafc99401eb0d7bb748c1f06d3f (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.coffee | 3 |
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 |