Commit 9c1087ef authored by Jacob Schatz's avatar Jacob Schatz Committed by Yorick Peterse

Merge branch 'rs-todo-middle-click' into 'master'

Allow middle-click on a Todo row to open in a new tab



See merge request !3899
parent 0eadb29d
...@@ -102,7 +102,8 @@ class @Todos ...@@ -102,7 +102,8 @@ class @Todos
todoLink = $(this).data('url') todoLink = $(this).data('url')
return unless todoLink 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() e.preventDefault()
window.open(todoLink,'_blank') window.open(todoLink,'_blank')
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment