FIX: details tags broke excerpts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user