1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:25:54 +00:00

Added functionality for navigation without opening articles and toggling expansion of headlines

This commit is contained in:
Sunjay Cauligi
2013-04-05 18:47:40 -07:00
parent b87bd8ed56
commit 8b35d17172
3 changed files with 61 additions and 14 deletions

View File

@@ -282,6 +282,12 @@ function init() {
hotkey_actions["prev_article_noscroll"] = function() {
moveToPost('prev', true);
};
hotkey_actions["next_article_noexpand"] = function() {
moveToPost('next', true, true);
};
hotkey_actions["prev_article_noexpand"] = function() {
moveToPost('prev', true, true);
};
hotkey_actions["collapse_article"] = function() {
var id = getActiveArticleId();
var elem = $("CICD-"+id);
@@ -292,6 +298,16 @@ function init() {
cdmExpandArticle(id);
}
};
hotkey_actions["toggle_expand"] = function() {
var id = getActiveArticleId();
var elem = $("CICD-"+id);
if(elem.visible()) {
cdmUnexpandArticle(null, id);
}
else {
cdmExpandArticle(id);
}
};
hotkey_actions["search_dialog"] = function() {
search();
};