diff options
author | Andrew Dolgov <[email protected]> | 2013-04-05 22:42:59 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-05 22:42:59 -0700 |
commit | ef74a05ea2080b715e79459c45787cb4118bed33 (patch) | |
tree | 34d927c713ebacdf7304c97b53bf14e660fc5f5e /js/tt-rss.js | |
parent | cc36ff0148ba595ba8694c5cbd141d4a3a188ba8 (diff) | |
parent | 8b35d171729f59a27b001cb16cef7de1e1c46fd0 (diff) |
Merge pull request #134 from sunjayc99/master
Added functionality for navigation without opening articles and toggling expansion of headlines
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index 51257a693..8c5a65749 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -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(); }; |