FIX: Regression when clicking on post date

This commit is contained in:
Robin Ward 2017-05-04 13:48:21 -04:00
parent c576e49230
commit 81326f85e5
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ export default Ember.Component.extend({
return true; 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 they want to open in a new tab, let it so
if (wantsNewWindow(e)) { return true; } if (wantsNewWindow(e)) { return true; }
@ -121,7 +121,7 @@ export default Ember.Component.extend({
willDestroyElement() { willDestroyElement() {
this._super(); this._super();
$('html').off('click.discoure-share-link') $('html').off('click.discourse-share-link')
.off('mousedown.outside-share-link') .off('mousedown.outside-share-link')
.off('keydown.share-view'); .off('keydown.share-view');
}, },