diff options
Diffstat (limited to 'js/Article.js')
-rw-r--r-- | js/Article.js | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/js/Article.js b/js/Article.js index 5f695561c..ed74051a6 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 ` @@ -317,7 +322,7 @@ const Article = { }, editTags: function (id) { const dialog = new fox.SingleUseDialog({ - title: __("Edit article Tags"), + title: __("Article tags"), content: ` ${App.FormFields.hidden_tag("id", id.toString())} ${App.FormFields.hidden_tag("op", "article")} @@ -329,7 +334,7 @@ const Article = { <section> <textarea dojoType='dijit.form.SimpleTextarea' rows='4' disabled='true' - id='tags_str' name='tags_str'></textarea> + id='tags_str' name='tags_str'>${__("Loading, please wait...")}</textarea> <div class='autocomplete' id='tags_choices' style='display:none'></div> </section> |