summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-09 23:23:54 +0300
committerAndrew Dolgov <[email protected]>2019-12-09 23:23:54 +0300
commit44ef447c0f3c4cd5d5bbd02b2971ea80422a8439 (patch)
treed4e75e3fa453da29765ed7cb1706b3c63ce00560 /js/tt-rss.js
parente7dd634183154949fab7aa0b00844eb645cb87e5 (diff)
fix fatal error in previous because of event not being passed via Headlines.move()
scrollbypages, etc: make event optional anyway
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 8972543c9..744034f0c 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -277,23 +277,23 @@ require(["dojo/_base/kernel",
if (rv) Feeds.open({feed: rv[0], is_cat: rv[1], delayed: true})
};
- this.hotkey_actions["next_article"] = function () {
- Headlines.move('next');
+ this.hotkey_actions["next_article"] = function (event) {
+ Headlines.move('next', {event: event});
};
- this.hotkey_actions["prev_article"] = function () {
- Headlines.move('prev');
+ this.hotkey_actions["prev_article"] = function (event) {
+ Headlines.move('prev', {event: event});
};
- this.hotkey_actions["next_article_noscroll"] = function () {
- Headlines.move('next', true);
+ this.hotkey_actions["next_article_noscroll"] = function (event) {
+ Headlines.move('next', {noscroll: true, event: event});
};
- this.hotkey_actions["prev_article_noscroll"] = function () {
- Headlines.move('prev', true);
+ this.hotkey_actions["prev_article_noscroll"] = function (event) {
+ Headlines.move('prev', {noscroll: true, event: event});
};
- this.hotkey_actions["next_article_noexpand"] = function () {
- Headlines.move('next', true, true);
+ this.hotkey_actions["next_article_noexpand"] = function (event) {
+ Headlines.move('next', {noscroll: true, noexpand: true, event: event});
};
- this.hotkey_actions["prev_article_noexpand"] = function () {
- Headlines.move('prev', true, true);
+ this.hotkey_actions["prev_article_noexpand"] = function (event) {
+ Headlines.move('prev', {noscroll: true, noexpand: true, event: event});
};
this.hotkey_actions["search_dialog"] = function () {
Feeds.search();