CoreFiles by mySites.guru
jupdatecheck.min.js4 lines, 1,132 bytes, from Joomla_5.2.3-Stable-Full_Package.zip
Raw History Compare with 5.2.2
md5
05df7f952ee0c1490d94cd03059ef8a8
sha1
000cb022643247ae62a2ca6cb2373823d9bf1e6b
sha256
2db9279e25b556f9a5185053ebe3aa94207c2e78215ab5bf793da59aed7a7015
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */if(Joomla&&Joomla.getOptions("js-extensions-update")){const e=(t,a)=>{const o=document.getElementById("plg_quickicon_joomlaupdate");o&&o.classList.add(t),o.querySelectorAll("span.j-links-link").forEach(s=>{s.innerHTML=Joomla.sanitizeHtml(a)})},l=()=>{const t=Joomla.getOptions("js-joomla-update");Joomla.enqueueRequest({url:t.ajaxUrl,method:"GET",promise:!0}).then(a=>{const o=a.responseText,s=JSON.parse(o);if(Array.isArray(s))if(s.length===0)e("success",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE"));else{const n=s.shift();n.version!==t.version?e("danger",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND").replace("%s",`<span class="badge text-dark bg-light"> \u200E ${n.version}</span>`)):e("success",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE"))}else e("danger",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_ERROR"))}).catch(()=>{e("danger",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_ERROR"))})};window.addEventListener("load",()=>setTimeout(l,300))}

The same content is in 19 releases, Joomla 5.2.0-alpha1 to 5.3.0-alpha3. See them all, or every version of this file.