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:
24
js/tt-rss.js
24
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();
|
||||
|
||||
Reference in New Issue
Block a user