From 81326f85e59a7fea3a81d582005e57cbf762bec6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 4 May 2017 13:48:21 -0400 Subject: [PATCH] FIX: Regression when clicking on post date --- .../javascripts/discourse/components/share-popup.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/components/share-popup.js.es6 b/app/assets/javascripts/discourse/components/share-popup.js.es6 index 24f64262c36..3b04176dc9a 100644 --- a/app/assets/javascripts/discourse/components/share-popup.js.es6 +++ b/app/assets/javascripts/discourse/components/share-popup.js.es6 @@ -93,7 +93,7 @@ export default Ember.Component.extend({ return true; }); - $html.on('click.discoure-share-link', 'button[data-share-url]', e => { + $html.on('click.discourse-share-link', 'button[data-share-url], .post-info .post-date[data-share-url]', e => { // if they want to open in a new tab, let it so if (wantsNewWindow(e)) { return true; } @@ -121,7 +121,7 @@ export default Ember.Component.extend({ willDestroyElement() { this._super(); - $('html').off('click.discoure-share-link') + $('html').off('click.discourse-share-link') .off('mousedown.outside-share-link') .off('keydown.share-view'); },