From 476898b1d4371ecd5bec407592a8b08b90963cab Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Mon, 13 Jan 2020 14:57:31 -0600 Subject: Do not advance to the next item when using the 'v' shortcut on the list of starred items --- ui/static/js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/static/js/app.js') 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); } } -- cgit v1.2.3