CoreFiles by mySites.guru
quickicon-es5.min.js1 lines, 814 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
2a866adbcbe41fd8f4bd85b6e84c93b6
sha1
1d5c19f4cf81cc7741ad8c8c7f945d0dfe6dd398
sha256
471eb90c17d3314aed98aab45ac118a1063e725664ff8187095f4c9c81c7ff7c
!function(){"use strict";if(!Joomla)throw new Error("Joomla API was not properly initialized");Array.from(document.querySelectorAll(".quickicon")).forEach((function(t){var r=t.querySelector(".quickicon-amount");r&&r.dataset.url&&Joomla.request({url:r.dataset.url,method:"GET",onSuccess:function(a){var e;try{e=JSON.parse(a)}catch(r){t.classList.add("error")}if(Object.prototype.hasOwnProperty.call(e,"data")){var o=t.querySelector(".quickicon-name"),n=document.createElement("span");t.classList.add(e.data>0?"warning":"success"),e.data.name&&o&&(n.textContent=e.data.name,o.replaceChild(n,o.firstChild)),r.textContent="‎"+e.data.amount;var c=t.querySelector(".quickicon-sr-desc");e.data.sronly&&c&&(c.textContent=e.data.sronly)}else t.classList.add("error")},onError:function(){t.classList.add("error")}})}))}();

The same content is in 97 releases, Joomla 4.0.0-rc1 to 5.0.0-alpha1. See them all, or every version of this file.