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

fix fatal error in previous because of event not being passed via Headlines.move()

scrollbypages, etc: make event optional anyway
This commit is contained in:
Andrew Dolgov
2019-12-09 23:23:54 +03:00
parent e7dd634183
commit 44ef447c0f
3 changed files with 24 additions and 18 deletions

View File

@@ -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();