FIX: details tags broke excerpts

This commit is contained in:
Robin Ward
2017-12-19 17:28:55 -05:00
parent c1716d41c7
commit b3fda0ea86
5 changed files with 31 additions and 1 deletions
@@ -17,6 +17,7 @@ export default Ember.Component.extend(LoadMore, {
$(window).on('resize.discourse-on-scroll', () => this.scrolled());
this.$().on('click.details-disabled', 'details.disabled', () => false)
this.$().on('mouseup.discourse-redirect', '.excerpt a', function(e) {
// bypass if we are selecting stuff
const selection = window.getSelection && window.getSelection();
@@ -38,6 +39,7 @@ export default Ember.Component.extend(LoadMore, {
_destroyed: function() {
this.unbindScrolling('user-stream-view');
$(window).unbind('resize.discourse-on-scroll');
this.$().off('click.details-disabled', 'details.disabled')
// Unbind link tracking
this.$().off('mouseup.discourse-redirect', '.excerpt a');
@@ -42,7 +42,7 @@
<ul class="usercard-controls">
{{#if user.can_send_private_message_to_user}}
<li>
<li class='compose-pm'>
{{d-button
class="btn-primary"
action=(action "composePrivateMessage" user post)