[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 !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")}})}))}();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |