diff --git a/js/Article.js b/js/Article.js index 5f695561c783b2b593e21f9726e5e2c6b1ce7d8b..ba08e36566b370dfa3698aecd5aa4fd30ada15d7 100644 --- a/js/Article.js +++ b/js/Article.js @@ -144,10 +144,15 @@ const Article = { ).join(", ") : `${__("no tags")}`}</span>`; }, renderLabels: function(id, labels) { - return `<span class="labels" data-labels-for="${id}">${labels.map((label) => ` - <span class="label" data-label-id="${label[0]}" - style="color : ${label[2]}; background-color : ${label[3]}">${App.escapeHtml(label[1])}</span>` - ).join("")}</span>`; + return `<span class="labels" data-labels-for="${id}"> + ${labels.map((label) => ` + <a href="#" class="label" data-label-id="${label[0]}" + style="color : ${label[2]}; background-color : ${label[3]}" + onclick="event.stopPropagation(); Feeds.open({feed:'${label[0]}'})"> + ${App.escapeHtml(label[1])} + </a>` + ).join("")} + </span>`; }, renderEnclosures: function (enclosures) { return `