summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-06-04 23:27:22 +0300
committerAndrew Dolgov <[email protected]>2020-06-04 23:27:22 +0300
commit88027d7a3913872c16f42cb9d9d713aa994eb034 (patch)
tree1fe058c07c0e5d532c063bd0e4e7b69a47096ae2 /js/Headlines.js
parent755662a9d756fffa225343da847de2a36f464c7b (diff)
fix various minor issues reported by eslint
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 7a5a7ee94..1e6fc4268 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -1,5 +1,8 @@
'use strict';
-/* global __, ngettext */
+
+/* global __, ngettext, Article, App, escapeHtml */
+/* global xhrPost, xhrJson, dojo, dijit, PluginHost, Notify, $$, Feeds */
+/* global CommonDialogs */
const Headlines = {
vgroup_last_feed: undefined,
@@ -319,7 +322,7 @@ const Headlines = {
if (App.getInitParam("cdm_auto_catchup")) {
- let rows = $$("#headlines-frame > div[id*=RROW][class*=Unread]");
+ const rows = $$("#headlines-frame > div[id*=RROW][class*=Unread]");
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
@@ -1185,8 +1188,8 @@ const Headlines = {
if (App.getInitParam("confirm_feed_catchup") != 1 || confirm(msg)) {
- for (var i = 0; i < ids_to_mark.length; i++) {
- var e = $("RROW-" + ids_to_mark[i]);
+ for (let i = 0; i < ids_to_mark.length; i++) {
+ const e = $("RROW-" + ids_to_mark[i]);
e.removeClassName("Unread");
}
}
@@ -1231,14 +1234,14 @@ const Headlines = {
menu.addChild(new dijit.MenuItem({
label: __("Open original article"),
- onClick: function (event) {
+ onClick: function (/* event */) {
Article.openInNewWindow(this.getParent().currentTarget.getAttribute("data-article-id"));
}
}));
menu.addChild(new dijit.MenuItem({
label: __("Display article URL"),
- onClick: function (event) {
+ onClick: function (/* event */) {
Article.displayUrl(this.getParent().currentTarget.getAttribute("data-article-id"));
}
}));
@@ -1387,7 +1390,7 @@ const Headlines = {
menu.addChild(new dijit.MenuItem({
label: __("Select articles in group"),
- onClick: function (event) {
+ onClick: function (/* event */) {
Headlines.select("all",
"#headlines-frame > div[id*=RROW]" +
"[data-orig-feed-id='" + this.getParent().currentTarget.getAttribute("data-feed-id") + "']");