1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 14:25:55 +00:00

remove unnecessary "== 1" when checking for init params

unsubscribeFeed: check for undefined title correctly
This commit is contained in:
Andrew Dolgov
2019-12-10 09:10:45 +03:00
parent a40f22d8aa
commit 5b4eb8d7b9
3 changed files with 14 additions and 14 deletions

View File

@@ -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;
}