mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-29 08:09:55 -04:00
FIX: double click counters
This commit is contained in:
parent
3b9223c5da
commit
8a1a9f60a2
1 changed files with 4 additions and 2 deletions
|
@ -186,10 +186,12 @@ const PostView = Discourse.GroupedView.extend(Ember.Evented, {
|
|||
const $link = $(this),
|
||||
href = $link.attr('href');
|
||||
|
||||
let valid = !lc.internal && href === lc.url;
|
||||
let valid = href === lc.url;
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
if (valid) {
|
||||
// don't display badge counts on category badge & oneboxes (unless when explicitely stated)
|
||||
|
|
Loading…
Add table
Reference in a new issue