mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Make sure we always get the pagination in unread mode
This commit is contained in:
parent
0b0f4751fa
commit
77947282e4
4 changed files with 19 additions and 15 deletions
|
@ -637,13 +637,6 @@ class NavHandler {
|
|||
openSelectedItem() {
|
||||
let currentItemLink = document.querySelector(".current-item .item-title a");
|
||||
if (currentItemLink !== null) {
|
||||
// The following 4 lines ensure that the unread count in the menu is
|
||||
// updated correctly when users presses "o".
|
||||
let currentItemOriginalLink = document.querySelector(".current-item a[data-original-link]");
|
||||
if (currentItemOriginalLink !== null) {
|
||||
let currentItem = document.querySelector(".current-item");
|
||||
EntryHandler.markEntryAsRead(currentItem);
|
||||
}
|
||||
window.location.href = currentItemLink.getAttribute("href");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue