diff --git a/assets/js/all.min.js b/assets/js/all.min.js index 91af464..6878a11 100644 --- a/assets/js/all.min.js +++ b/assets/js/all.min.js @@ -1,6 +1,6 @@ var Miniflux={};Miniflux.App=function(){return{BlinkIcon:function(){var e=document.querySelectorAll(".loading-icon");[].forEach.call(e,function(a){a.classList.toggle("loading-icon-blink")})},Run:function(){Miniflux.Event.ListenKeyboardEvents();Miniflux.Event.ListenMouseEvents()}}}(); Miniflux.Feed=function(){function e(d){if(d=document.getElementById("loading-feed-"+d))d.appendChild(document.createTextNode("\u2600")),d.classList.add("loading-icon-blink");f||(f=setInterval(Miniflux.App.BlinkIcon,500))}function a(){for(var d=document.getElementsByTagName("a"),l=0,c=d.length;lc.length;){var a=b.shift();c.push(a);Miniflux.Feed.Update(a, +d);a&&(a.innerHTML="");if(a=document.getElementById("last-checked-feed-"+d))a.innerHTML=a.getAttribute("data-after-update");try{var c=JSON.parse(this.responseText);if(c.result){var g=c.items_count,e=document.getElementById("items-count-"+d);e&&(e.innerHTML=g.items_unread+"/"+g.items_total)}b&&b(c)}catch(f){}};a.open("POST","?action=refresh-feed&feed_id="+d,!0);a.send()},UpdateAll:function(){a();var d=setInterval(function(){for(;0c.length;){var a=b.shift();c.push(a);Miniflux.Feed.Update(a, function(a){a=c.indexOf(a.feed_id);0<=a&&c.splice(a,1);0==b.length&&0==c.length&&(clearInterval(d),clearInterval(f),window.location.href="?action=unread")})}},100)}}}(); Miniflux.Item=function(){function e(d){return item_id=d.getAttribute("data-item-id")}function a(d){if(d&&d.hasAttribute("data-reverse-label")){var b=d.innerHTML;d.innerHTML=d.getAttribute("data-reverse-label");d.setAttribute("data-reverse-label",b)}}function b(d){"mouse"!==Miniflux.Event.lastEventType&&Miniflux.Nav.SelectNextItem();d.parentNode.removeChild(d);var b=document.getElementById("page-counter");if(b){d=d.getAttribute("data-item-page");var a=parseInt(b.textContent,10)-1,c=document.getElementsByTagName("article"); if(0===a||0===c.length)window.location=location.href;b.textContent=a;switch(d){case "unread":document.title="Miniflux ("+a+")";document.getElementById("nav-counter").textContent=a;break;case "feed-items":document.title="("+a+") "+b.parentNode.firstChild.nodeValue;break;default:document.title=b.parentNode.firstChild.nodeValue+" ("+a+")"}}}function c(d){var c=e(d),g=new XMLHttpRequest;g.onload=function(){if(Miniflux.Nav.IsListing())if(d.getAttribute("data-hide"))b(d);else{d.setAttribute("data-item-status", diff --git a/assets/js/feed.js b/assets/js/feed.js index bc3fba6..3ac2e0d 100644 --- a/assets/js/feed.js +++ b/assets/js/feed.js @@ -52,7 +52,7 @@ Miniflux.Feed = (function() { function updateItemsCounter(feed_id, counts) { var container = document.getElementById("items-count-" + feed_id); - if (container) container.innerHTML = "(" + counts["items_unread"] + "/" + counts['items_total'] + ")"; + if (container) container.innerHTML = counts["items_unread"] + "/" + counts['items_total']; } return {