1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:45:56 +00:00

refactor selection toggle functions; other minor cleanup

This commit is contained in:
Andrew Dolgov
2018-12-01 08:59:30 +03:00
parent a2ef54cd92
commit 669077c6ad
2 changed files with 69 additions and 106 deletions

View File

@@ -303,13 +303,13 @@ function init_hotkey_actions() {
search();
};
hotkey_actions["toggle_mark"] = function() {
selectionToggleMarked(undefined, false, true);
selectionToggleMarked();
};
hotkey_actions["toggle_publ"] = function() {
selectionTogglePublished(undefined, false, true);
selectionTogglePublished();
};
hotkey_actions["toggle_unread"] = function() {
selectionToggleUnread(undefined, false, true);
selectionToggleUnread({no_error: 1});
};
hotkey_actions["edit_tags"] = function() {
const id = getActiveArticleId();