summaryrefslogtreecommitdiff
path: root/js/feedlist.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-01 21:51:00 +0300
committerAndrew Dolgov <[email protected]>2018-12-01 21:51:00 +0300
commitcc26be0793c6c0e44a540c25f86627342a82714f (patch)
treee38a894845086db52d7977b38ffa2857754236b6 /js/feedlist.js
parentab0fadf60d2576564b6fe6e2dd15699c1516de9f (diff)
migrate tt-rss.js contents to App
Diffstat (limited to 'js/feedlist.js')
-rw-r--r--js/feedlist.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/feedlist.js b/js/feedlist.js
index ad863f94c..c295bf22b 100644
--- a/js/feedlist.js
+++ b/js/feedlist.js
@@ -6,6 +6,7 @@ const Feeds = {
infscroll_disabled: 0,
_infscroll_timeout: false,
_search_query: false,
+ last_search_query: [],
_viewfeed_wait_timeout: false,
_counters_prev: [],
// NOTE: this implementation is incomplete
@@ -206,7 +207,7 @@ const Feeds = {
Utils.setLoadingProgress(50);
- document.onkeydown = App.hotkeyHandler;
+ document.onkeydown = () => { App.hotkeyHandler(event) };
window.setInterval(() => { hotkeyPrefixTimeout() }, 3 * 1000);
window.setInterval(() => { Headlines.catchupBatchedArticles() }, 10 * 1000);
@@ -436,7 +437,7 @@ const Feeds = {
str = __("Mark %w in %s as read?");
}
- const mark_what = last_search_query && last_search_query[0] ? __("search results") : __("all articles");
+ const mark_what = this.last_search_query && this.last_search_query[0] ? __("search results") : __("all articles");
const fn = this.getFeedName(feed, is_cat);
str = str.replace("%s", fn)
@@ -448,8 +449,8 @@ const Feeds = {
const catchup_query = {
op: 'rpc', method: 'catchupFeed', feed_id: feed,
- is_cat: is_cat, mode: mode, search_query: last_search_query[0],
- search_lang: last_search_query[1]
+ is_cat: is_cat, mode: mode, search_query: this.last_search_query[0],
+ search_lang: this.last_search_query[1]
};
notify_progress("Loading, please wait...", true);