summaryrefslogtreecommitdiff
path: root/js/Headlines.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-10 09:10:45 +0300
committerAndrew Dolgov <[email protected]>2019-12-10 09:10:45 +0300
commit5b4eb8d7b9f5f00ace949d8f008ab61540ceef8b (patch)
tree1b276642a76b1088b144c2e13083a50f811a5a9d /js/Headlines.js
parenta40f22d8aa0848456cd988b8523537bd1205f490 (diff)
remove unnecessary "== 1" when checking for init params
unsubscribeFeed: check for undefined title correctly
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 99f911838..acc4b18e3 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -303,7 +303,7 @@ define(["dojo/_base/declare"], function (declare) {
}
}
- if (App.getInitParam("cdm_auto_catchup") == 1) {
+ if (App.getInitParam("cdm_auto_catchup")) {
let rows = $$("#headlines-frame > div[id*=RROW][class*=Unread]");
@@ -919,7 +919,7 @@ define(["dojo/_base/declare"], function (declare) {
const row = $("RROW-" + id);
if (row) {
- if (cmode == undefined) cmode = 2;
+ if (typeof cmode == "undefined") cmode = 2;
switch (cmode) {
case 0:
@@ -990,7 +990,7 @@ define(["dojo/_base/declare"], function (declare) {
str = str.replace("%d", rows.length);
str = str.replace("%s", fn);
- if (App.getInitParam("confirm_feed_catchup") == 1 && !confirm(str)) {
+ if (App.getInitParam("confirm_feed_catchup") && !confirm(str)) {
return;
}
@@ -1136,7 +1136,7 @@ define(["dojo/_base/declare"], function (declare) {
str = str.replace("%d", rows.length);
str = str.replace("%s", fn);
- if (App.getInitParam("confirm_feed_catchup") == 1 && !confirm(str)) {
+ if (App.getInitParam("confirm_feed_catchup") && !confirm(str)) {
return;
}
@@ -1162,7 +1162,7 @@ define(["dojo/_base/declare"], function (declare) {
str = str.replace("%d", rows.length);
str = str.replace("%s", fn);
- if (App.getInitParam("confirm_feed_catchup") == 1 && !confirm(str)) {
+ if (App.getInitParam("confirm_feed_catchup") && !confirm(str)) {
return;
}