BUGFIX: ctrl+click on logo doesn't open site in new tab

This commit is contained in:
Régis Hanol 2014-06-18 22:52:31 +02:00
parent 4f523ae1b9
commit 08b8cacdb0
1 changed files with 3 additions and 0 deletions

View File

@ -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