CoreFiles by mySites.guru
quickicon.min.js1 lines, 819 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
5ecbb259ad6232a0a8e6349e172bd9c0
sha1
10d4a8a09a07e5c84ba88243b9850e7fdc8c625a
sha256
91b0aee57541557519ff21dcce0572304a755071fde6d7db5ef4ebe7a79259ad
(function(a,b){'use strict';a.addEventListener("DOMContentLoaded",function(){a.querySelectorAll(".quickicon").forEach(function(c){var d=c.querySelector(".pulse"),e=c.querySelector(".quickicon-amount");!e||e.dataset.url&&b.request({url:e.dataset.url,method:"GET",onSuccess:function onSuccess(b){var f=JSON.parse(b);if(Object.prototype.hasOwnProperty.call(f,"data")){var g=c.querySelector(".quickicon-name"),h=a.createElement("span");if(d){var i=0<f.data?"warning":"success";d.classList.add(i)}f.data.name&&g&&(h.textContent=f.data.name,g.replaceChild(h,g.firstChild)),e.textContent="\u200E".concat(f.data.amount);var j=c.querySelector(".quickicon-sr-desc");f.data.sronly&&j&&(j.textContent=f.data.sronly)}else d&&d.classList.add("error")},onError:function onError(){d&&d.classList.add("error")}})})})})(document,Joomla);

The same content is in 9 releases, Joomla 4.0.0-alpha11 to 4.0.0-beta7. See them all, or every version of this file.