CoreFiles by mySites.guru
admin-articles-modal.min.js1 lines, 1,031 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
fa95d31f64eb9e2be6a70164d63af409
sha1
b0a8df19948936e693d5c710d22673ed9ad760a3
sha256
792f3ce5decc8db59b535ca07ae3d7bb5c77538965dafecb68c5e9aabddc59cc
window.jSelectArticle=(t,e,a,n,o,i)=>{let r="";if(!Joomla.getOptions("xtd-articles"))return!1;const{editor:l}=Joomla.getOptions("xtd-articles");""!==i&&(r=`hreflang="${i}"`);const d=`<a ${r} href="${o}">${e}</a>`;return window.parent.Joomla.editors.instances[l].replaceSelection(d),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close(),!0},document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll(".select-link");for(let e=0,a=t.length;a>e;e+=1)t[e].addEventListener("click",(t=>{t.preventDefault();const{target:e}=t,a=e.getAttribute("data-function");"jSelectArticle"===a?window[a](e.getAttribute("data-id"),e.getAttribute("data-title"),e.getAttribute("data-cat-id"),null,e.getAttribute("data-uri"),e.getAttribute("data-language")):window.parent[a](e.getAttribute("data-id"),e.getAttribute("data-title"),e.getAttribute("data-cat-id"),null,e.getAttribute("data-uri"),e.getAttribute("data-language")),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))}));

The same content is in 73 releases, Joomla 4.0.0-rc1 to 4.3.0-beta4. See them all, or every version of this file.