mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 05:42:03 -04: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) {
|
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);
|
var $target = $(e.target);
|
||||||
if ($target.hasClass('mention') || $target.parents('.expanded-embed').length) { return false; }
|
if ($target.hasClass('mention') || $target.parents('.expanded-embed').length) { return false; }
|
||||||
return Discourse.ClickTrack.trackClick(e);
|
return Discourse.ClickTrack.trackClick(e);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}.on('didInsertElement'),
|
}.on('didInsertElement'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue