|
Server : Apache System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 User : urbanovitalinoad ( 1001) PHP Version : 7.3.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/urbanovitalinoad/public_html/next/media/plg_quickicon_overridecheck/js/ |
Upload File : |
(()=>{const e=()=>{if(Joomla.getOptions("js-override-check")){const e=Joomla.getOptions("js-override-check"),t=(e,t,o)=>{const n=document.getElementById("plg_quickicon_overridecheck"),s=n.querySelectorAll("span.j-links-link");n&&(n.classList.add(e),o&&n.setAttribute("href",o)),s.length&&s.forEach((e=>{e.innerHTML=Joomla.sanitizeHtml(t)}))};Joomla.enqueueRequest({url:e.ajaxUrl,method:"GET",promise:!0}).then((o=>{const n=o.responseText,s=JSON.parse(n);if("disabled"!==s.installerOverride){if(!Array.isArray(s))throw new Error("Override check: unexpected value type");0===s.length?t("success",Joomla.Text._("PLG_QUICKICON_OVERRIDECHECK_UPTODATE"),""):(window.scrollTo(0,0),t("danger",Joomla.Text._("PLG_QUICKICON_OVERRIDECHECK_OVERRIDEFOUND").replace("%s",`<span class="badge text-dark bg-light">${s.length}</span>`),""))}else t("danger",Joomla.Text._("PLG_QUICKICON_OVERRIDECHECK_ERROR_ENABLE"),`index.php?option=com_plugins&task=plugin.edit&extension_id=${e.pluginId}`)})).catch((()=>{t("danger",Joomla.Text._("PLG_QUICKICON_OVERRIDECHECK_ERROR"),"")}))}};window.addEventListener("load",(()=>{setTimeout(e,390)}))})();