BUGFIX: ctrl+click on logo doesn't open site in new tab
This commit is contained in:
parent
4f523ae1b9
commit
08b8cacdb0
|
@ -14,6 +14,9 @@ export default Ember.Component.extend({
|
||||||
title: Discourse.computed.setting('title'),
|
title: Discourse.computed.setting('title'),
|
||||||
|
|
||||||
click: function(e) {
|
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();
|
e.preventDefault();
|
||||||
|
|
||||||
// When you click the logo, never use a cached list
|
// When you click the logo, never use a cached list
|
||||||
|
|
Loading…
Reference in New Issue