diff options
author | Richard Schneider <richard@schneiderbox.net> | 2020-01-13 14:57:31 -0600 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2020-01-14 11:54:21 -0800 |
commit | 476898b1d4371ecd5bec407592a8b08b90963cab (patch) | |
tree | bd81e6458a6179fdca31b2ea2aa783f44ac8c5db /ui/static/js/app.js | |
parent | 1a78e3a5bc5edd644b99a958efc91e9cd05b1078 (diff) |
Do not advance to the next item when using the 'v' shortcut on the list of starred items
Diffstat (limited to 'ui/static/js/app.js')
-rw-r--r-- | ui/static/js/app.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/static/js/app.js b/ui/static/js/app.js index 6164800..41b85e6 100644 --- a/ui/static/js/app.js +++ b/ui/static/js/app.js @@ -297,9 +297,11 @@ function openOriginalLink(openLinkInCurrentTab) { if (currentItemOriginalLink !== null) { DomHelper.openNewTab(currentItemOriginalLink.getAttribute("href")); - // Move to the next item and if we are on the unread page mark this item as read. let currentItem = document.querySelector(".current-item"); - goToNextListItem(); + // If we are not on the list of starred items, move to the next item + if (document.location.href != document.querySelector('a[data-page=starred]').href){ + goToNextListItem(); + } markEntryAsRead(currentItem); } } |