summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-02 07:31:10 +0300
committerAndrew Dolgov <[email protected]>2018-12-02 07:31:10 +0300
commite5f3b755405ebf191835b449d08a2a8ac7dfebfb (patch)
treeb3ab2ca46bdc5d732f56e3d39c3b4b79b2b39e4a /js/tt-rss.js
parent1e2d4410d320fcee644add76293f229741a163cb (diff)
fix some minor linter problems
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 9c5a78ce2..e6dbd1107 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -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;