1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:15:56 +00:00

fix some minor linter problems

This commit is contained in:
Andrew Dolgov
2018-12-02 07:31:10 +03:00
parent 1e2d4410d3
commit e5f3b75540
3 changed files with 62 additions and 56 deletions

View File

@@ -280,7 +280,7 @@ const App = {
if (id) {
Article.editArticleTags(id);
}
}
};
this.hotkey_actions["open_in_new_window"] = function () {
if (Article.getActiveArticleId()) {
Article.openArticleInNewWindow(Article.getActiveArticleId());
@@ -504,23 +504,21 @@ const App = {
CommonDialogs.editFeed(Feeds.getActiveFeedId());
break;
case "qmcRemoveFeed":
var actid = Feeds.getActiveFeedId();
if (Feeds.activeFeedIsCat()) {
alert(__("You can't unsubscribe from the category."));
return;
}
const actid = Feeds.getActiveFeedId();
if (!actid) {
alert(__("Please select some feed first."));
return;
}
var fn = Feeds.getFeedName(actid);
if (Feeds.activeFeedIsCat()) {
alert(__("You can't unsubscribe from the category."));
return;
}
var pr = __("Unsubscribe from %s?").replace("%s", fn);
const fn = Feeds.getFeedName(actid);
if (confirm(pr)) {
if (confirm(__("Unsubscribe from %s?").replace("%s", fn))) {
CommonDialogs.unsubscribeFeed(actid);
}
break;