From 3181424d8e56021649f459879af529397945cdb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 23 Jun 2014 17:11:37 +0200 Subject: [PATCH] BUGFIX: can't ctrl+click post datestamps --- app/assets/javascripts/discourse/views/share.js.es6 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/discourse/views/share.js.es6 b/app/assets/javascripts/discourse/views/share.js.es6 index 744cef75b47..80828df6894 100644 --- a/app/assets/javascripts/discourse/views/share.js.es6 +++ b/app/assets/javascripts/discourse/views/share.js.es6 @@ -51,6 +51,9 @@ export default Discourse.View.extend({ }); $html.on('click.discoure-share-link', '[data-share-url]', 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(); var $currentTarget = $(e.currentTarget), $currentTargetOffset = $currentTarget.offset(),