mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-16 08:54:59 -04:00
BUGFIX: ctrl+click on logo doesn't open site in new tab
This commit is contained in:
parent
4f523ae1b9
commit
08b8cacdb0
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ export default Ember.Component.extend({
|
|||
title: Discourse.computed.setting('title'),
|
||||
|
||||
click: function(e) {
|
||||
// if they want to open in a new tab, let it so
|
||||
if (e.shiftKey || e.metaKey || e.ctrlKey || e.which === 2) { return true; }
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
// When you click the logo, never use a cached list
|
||||
|
|
Loading…
Add table
Reference in a new issue