BUGFIX: can't ctrl+click post datestamps

This commit is contained in:
Régis Hanol 2014-06-23 17:11:37 +02:00
parent 86b4f53777
commit 3181424d8e
1 changed files with 3 additions and 0 deletions

View File

@ -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(),