aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/static/js/app.js
diff options
context:
space:
mode:
authorGravatar Richard Schneider <richard@schneiderbox.net>2020-01-13 14:57:31 -0600
committerGravatar Frédéric Guillot <fred@miniflux.net>2020-01-14 11:54:21 -0800
commit476898b1d4371ecd5bec407592a8b08b90963cab (patch)
treebd81e6458a6179fdca31b2ea2aa783f44ac8c5db /ui/static/js/app.js
parent1a78e3a5bc5edd644b99a958efc91e9cd05b1078 (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.js6
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);
}
}