mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: if quoting ends with link, quote reply does not show up
This commit is contained in:
parent
2d12451ab1
commit
890346f0b0
1 changed files with 5 additions and 0 deletions
|
@ -48,9 +48,14 @@ export default Discourse.View.extend(AddCategoryClass, Discourse.Scrolling, {
|
|||
});
|
||||
|
||||
this.$().on('mouseup.discourse-redirect', '.cooked a, a.track-link', function(e) {
|
||||
var selection = window.getSelection && window.getSelection();
|
||||
// bypass if we are selecting stuff
|
||||
if (selection.type === "Range" || selection.rangeCount > 0) { return true; }
|
||||
|
||||
var $target = $(e.target);
|
||||
if ($target.hasClass('mention') || $target.parents('.expanded-embed').length) { return false; }
|
||||
return Discourse.ClickTrack.trackClick(e);
|
||||
|
||||
});
|
||||
|
||||
}.on('didInsertElement'),
|
||||
|
|
Loading…
Reference in a new issue