diff options
author | Andrew Dolgov <[email protected]> | 2018-12-02 08:57:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-02 08:57:22 +0300 |
commit | 0a18d0b1edb208e5811c419a1119d131b7041173 (patch) | |
tree | c29bb357c29970bc241e4161b878b2c45506aeef /js/functions.js | |
parent | 6e625555c980f82bec546bcb4d21db8d22d8eb76 (diff) |
Feeds: shorten some method names
finally rename "view as rss"
Diffstat (limited to 'js/functions.js')
-rwxr-xr-x | js/functions.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/functions.js b/js/functions.js index a3b257979..df7a33831 100755 --- a/js/functions.js +++ b/js/functions.js @@ -699,9 +699,9 @@ const CommonDialogs = { if (App.isPrefs()) { Feeds.reload(); } else { - if (feed_id == Feeds.getActiveFeedId()) + if (feed_id == Feeds.getActive()) setTimeout(() => { - Feeds.viewfeed({feed: -5}) + Feeds.open({feed: -5}) }, 100); @@ -1351,7 +1351,7 @@ const Filters = { if (!App.isPrefs()) { query = { op: "pref-filters", method: "newfilter", - feed: Feeds.getActiveFeedId(), is_cat: Feeds.activeFeedIsCat() + feed: Feeds.getActive(), is_cat: Feeds.activeIsCat() }; } else { query = {op: "pref-filters", method: "newfilter"}; @@ -1445,8 +1445,8 @@ const Filters = { if (selectedText != "") { - const feed_id = Feeds.activeFeedIsCat() ? 'CAT:' + parseInt(Feeds.getActiveFeedId()) : - Feeds.getActiveFeedId(); + const feed_id = Feeds.activeIsCat() ? 'CAT:' + parseInt(Feeds.getActive()) : + Feeds.getActive(); const rule = {reg_exp: selectedText, feed_id: [feed_id], filter_type: 1}; @@ -1463,12 +1463,12 @@ const Filters = { if (reply && reply.title) title = reply.title; - if (title || Feeds.getActiveFeedId() || Feeds.activeFeedIsCat()) { + if (title || Feeds.getActive() || Feeds.activeIsCat()) { - console.log(title + " " + Feeds.getActiveFeedId()); + console.log(title + " " + Feeds.getActive()); - const feed_id = Feeds.activeFeedIsCat() ? 'CAT:' + parseInt(Feeds.getActiveFeedId()) : - Feeds.getActiveFeedId(); + const feed_id = Feeds.activeIsCat() ? 'CAT:' + parseInt(Feeds.getActive()) : + Feeds.getActive(); const rule = {reg_exp: title, feed_id: [feed_id], filter_type: 1}; |