mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 20:54:00 -06:00
FIX: click counter for attachments
This commit is contained in:
parent
c10e3df012
commit
37a9164fa0
@ -157,7 +157,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
|
||||
|
||||
self.$(".cooked a[href]").each(function() {
|
||||
var link = $(this);
|
||||
if (!lc.internal && link.attr('href') === lc.url) {
|
||||
if ((!lc.internal || lc.url[0] === "/") && link.attr('href') === lc.url) {
|
||||
// don't display badge counts on category badge
|
||||
if (link.closest('.badge-category').length === 0 && ((link.closest(".onebox-result").length === 0 && link.closest('.onebox-body').length === 0) || link.hasClass("track-link"))) {
|
||||
link.append("<span class='badge badge-notification clicks' title='" +
|
||||
|
Loading…
Reference in New Issue
Block a user