CoreFiles by mySites.guru
quickicon.min.js4 lines, 931 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
c94b01e1ae824f0950e22d2849be273a
sha1
6562dab353847beb9c60f0cb2dc48185a7bf2dee
sha256
7232a12000c3cbab71d7126c8b0b6c2566327aae5de1cc0b191e66ab37debcaf
/**
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */if(!Joomla)throw new Error("Joomla API was not properly initialized");Array.from(document.querySelectorAll(".quickicon")).forEach(t=>{const r=t.querySelector(".quickicon-amount");r&&r.dataset.url&&Joomla.request({url:r.dataset.url,method:"GET",onSuccess:n=>{let e;try{e=JSON.parse(n)}catch{t.classList.add("error")}if(Object.prototype.hasOwnProperty.call(e,"data")){const a=t.querySelector(".quickicon-name"),o=document.createElement("span");t.classList.add(e.data>0?"warning":"success"),e.data.name&&a&&(o.textContent=e.data.name,a.replaceChild(o,a.firstChild)),r.textContent=`\u200E${e.data.amount}`;const s=t.querySelector(".quickicon-sr-desc");e.data.sronly&&s&&(s.textContent=e.data.sronly)}else t.classList.add("error")},onError:()=>{t.classList.add("error")}})});

The same content is in 40 releases, Joomla 4.4.1-rc1 to 5.1.0-alpha4. See them all, or every version of this file.