From 555fd9279d2e5631726ba98259bbd900256fae4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Fri, 4 Apr 2014 18:41:24 -0400 Subject: [PATCH] Fix bug: open original link doesn't mark item as read --- assets/js/all.min.js | 2 +- assets/js/event.js | 1 + templates/item.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/all.min.js b/assets/js/all.min.js index 92adf14..2bd64ab 100644 --- a/assets/js/all.min.js +++ b/assets/js/all.min.js @@ -14,7 +14,7 @@ document.getElementById("original-"+b);a&&("unread"==e(b).getAttribute("data-ite c));var e=setInterval(Miniflux.App.BlinkIcon,250),f=new XMLHttpRequest;f.onload=function(){var a=JSON.parse(f.responseText);clearInterval(e);if(a.result){var c=document.getElementById("item-content");c&&(c.innerHTML=a.content);b&&(a=b.getAttribute("data-after-message"),b.innerHTML="",b.appendChild(document.createTextNode(" "+a)))}else b&&(a=b.getAttribute("data-failure-message"),b.innerHTML="",b.appendChild(document.createTextNode(" "+a)))};f.open("POST","?action=download-item&id="+a,!0);f.send()}}, MarkListingAsRead:function(a){for(var c=document.getElementsByTagName("article"),d=[],e=0,f=c.length;e
  • - +