mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #2795 from lidlanca/fix-link-release
Fix: Cancel link click if triggered as part of text selection
This commit is contained in:
commit
14936ed9c9
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ Discourse.ClickTrack = {
|
|||
@param {jQuery.Event} e The click event that occurred
|
||||
**/
|
||||
trackClick: function(e) {
|
||||
if (Discourse.Utilities.selectedText()!=="") return false; //cancle click if triggered as part of selection.
|
||||
var $link = $(e.currentTarget);
|
||||
if ($link.hasClass('lightbox')) return true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue