CoreFiles by mySites.guru
overridecheck.min.js4 lines, 1,277 bytes, from Joomla_5.1.4-Stable-Full_Package.zip
Raw History Compare with 5.1.3
md5
591a2e556b0123475d6a319d047feda6
sha1
0f24c9304f98aafe0404a11a75ffdcd4c6d3aea9
sha256
a0b8172369e9fe610c2e19b1f20014c8f86d88b5f9d274bff9a70010329b6c1b
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */(()=>{const l=()=>{if(Joomla.getOptions("js-override-check")){const i=Joomla.getOptions("js-override-check"),t=(n,s,e)=>{const o=document.getElementById("plg_quickicon_overridecheck"),r=o.querySelectorAll("span.j-links-link");o&&(o.classList.add(n),e&&o.setAttribute("href",e)),r.length&&r.forEach(a=>{a.innerHTML=Joomla.sanitizeHtml(s)})};Joomla.enqueueRequest({url:i.ajaxUrl,method:"GET",promise:!0}).then(n=>{const s=n.responseText,e=JSON.parse(s);if(e.installerOverride!=="disabled")if(Array.isArray(e))e.length===0?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">${e.length}</span>`),""));else throw new Error("Override check: unexpected value type");else t("danger",Joomla.Text._("PLG_QUICKICON_OVERRIDECHECK_ERROR_ENABLE"),`index.php?option=com_plugins&task=plugin.edit&extension_id=${i.pluginId}`)}).catch(()=>{t("danger",Joomla.Text._("PLG_QUICKICON_OVERRIDECHECK_ERROR"),"")})}};window.addEventListener("load",()=>{setTimeout(l,390)})})();

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