CoreFiles by mySites.guru
admin-system-loader.min.js1 lines, 1,070 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
aeb4d1edd11769172440f358c35df7ca
sha1
674df5978cceeebbbd1385cb7bea84288afdca13
sha256
0cb98aa5dd2580953d4c1983971410ff838f59f680a90babf2892baff27d7934
((e,s)=>{const t=()=>{window.removeEventListener("load",t);const a=[].slice.call(e.querySelectorAll(".system-counter"));a.length&&a.forEach((t=>{const a=t.getAttribute("data-url");a&&s&&s.request&&"function"==typeof s.request&&s.request({url:a,method:"POST",onSuccess:a=>{let c;try{c=JSON.parse(a)}catch(e){throw new Error("Failed to parse JSON")}if(c.error||!c.success)t.classList.remove("icon-spin"),t.classList.remove("icon-spinner"),t.classList.add("text-danger"),t.classList.add("icon-remove");else if(c.data){const a=e.createElement("span");a.classList.add("float-end"),a.classList.add("badge"),a.classList.add("bg-warning","text-dark"),a.innerHTML=s.sanitizeHtml(c.data),t.parentNode.replaceChild(a,t)}else t.classList.remove("icon-spin"),t.classList.remove("icon-spinner"),t.classList.add("icon-check"),t.classList.add("text-success")},onError:()=>{t.classList.remove("icon-spin"),t.classList.remove("icon-spinner"),t.classList.add("text-danger"),t.classList.add("icon-remove")}})}))};window.addEventListener("load",(()=>{setTimeout(t,300)}))})(document,Joomla);

The same content is in 43 releases, Joomla 4.0.0-rc6 to 4.2.0-beta1. See them all, or every version of this file.