diff options
author | Matt Haley <[email protected]> | 2013-06-13 22:39:26 -0700 |
---|---|---|
committer | Matt Haley <[email protected]> | 2013-06-13 22:39:26 -0700 |
commit | a95e14fb4c0f73291cd15cad20becb262378a9d7 (patch) | |
tree | 67c2a8eefe1556eb33dc1dbfd2b421cfb0f8ad3c /js/tt-rss.js | |
parent | b684a2e6654ef749832f60f4c4243a42e4f583a8 (diff) |
Load selected feed after a short timeout
Avoid firing multiple server requests if the user is navigating up/down
the tree list with the keyboard. Instead, wait till the user has stopped
navigating for at least 250ms.
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index ee3156c28..cc04a454a 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -272,13 +272,13 @@ function init() { var rv = dijit.byId("feedTree").getNextFeed( getActiveFeedId(), activeFeedIsCat()); - if (rv) viewfeed(rv[0], '', rv[1]); + if (rv) viewfeed(rv[0], '', rv[1], null, null, null, true); }; hotkey_actions["prev_feed"] = function() { var rv = dijit.byId("feedTree").getPreviousFeed( getActiveFeedId(), activeFeedIsCat()); - if (rv) viewfeed(rv[0], '', rv[1]); + if (rv) viewfeed(rv[0], '', rv[1], null, null, null, true); }; hotkey_actions["next_article"] = function() { moveToPost('next'); |