diff --git a/miniflux/assets/js/app.js b/miniflux/assets/js/app.js index 0f4ff86..3cca31c 100644 --- a/miniflux/assets/js/app.js +++ b/miniflux/assets/js/app.js @@ -11,7 +11,7 @@ request.onreadystatechange = function() { - if (request.readyState === 4) { + if (request.readyState === 4 && is_listing()) { var response = JSON.parse(request.responseText); @@ -180,8 +180,12 @@ if (link) { - mark_as_read(link.getAttribute("data-item-id")); - find_next_item(); + if (link.getAttribute("data-action") == "mark-read") { + + mark_as_read(link.getAttribute("data-item-id")); + find_next_item(); + } + link.click(); } } diff --git a/miniflux/templates/app_header.php b/miniflux/templates/app_header.php index 3cfbda1..2ccee69 100644 --- a/miniflux/templates/app_header.php +++ b/miniflux/templates/app_header.php @@ -2,7 +2,7 @@ - + diff --git a/miniflux/templates/history.php b/miniflux/templates/history.php index 17db654..41637b5 100644 --- a/miniflux/templates/history.php +++ b/miniflux/templates/history.php @@ -33,7 +33,6 @@ rel="noreferrer" target="_blank" data-item-id="" - data-action="mark-read" >