From b3fda0ea866f86dc092f97569aec78dde355472f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 19 Dec 2017 17:28:55 -0500 Subject: [PATCH] FIX: details tags broke excerpts --- .../discourse/components/user-stream.js.es6 | 2 ++ .../components/user-card-contents.hbs | 2 +- .../common/components/user-stream-item.scss | 4 ++++ lib/excerpt_parser.rb | 20 +++++++++++++++++++ spec/components/pretty_text_spec.rb | 4 ++++ 5 files changed, 31 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/user-stream.js.es6 b/app/assets/javascripts/discourse/components/user-stream.js.es6 index 0b37142ff66..90b97cdf7de 100644 --- a/app/assets/javascripts/discourse/components/user-stream.js.es6 +++ b/app/assets/javascripts/discourse/components/user-stream.js.es6 @@ -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'); diff --git a/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs b/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs index 441b877b14f..31e9c70b270 100644 --- a/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs @@ -42,7 +42,7 @@