FIX: Regression when clicking on post date
This commit is contained in:
parent
c576e49230
commit
81326f85e5
|
@ -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');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue