Backported double click fix
This commit is contained in:
parent
d4091d579d
commit
8bfb5b4e7b
1 changed files with 4 additions and 2 deletions
|
@ -89,10 +89,12 @@ export default class PostCooked {
|
||||||
const $link = $(e);
|
const $link = $(e);
|
||||||
const href = $link.attr('href');
|
const href = $link.attr('href');
|
||||||
|
|
||||||
let valid = !lc.internal && href === lc.url;
|
let valid = href === lc.url;
|
||||||
|
|
||||||
// this might be an attachment
|
// this might be an attachment
|
||||||
if (lc.internal) { valid = href.indexOf(lc.url) >= 0; }
|
if (lc.internal && /^\/uploads\//.test(lc.url)) {
|
||||||
|
valid = href.indexOf(lc.url) >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
// don't display badge counts on category badge & oneboxes (unless when explicitely stated)
|
// don't display badge counts on category badge & oneboxes (unless when explicitely stated)
|
||||||
if (valid && isValidLink($link)) {
|
if (valid && isValidLink($link)) {
|
||||||
|
|
Reference in a new issue