CoreFiles by mySites.guru
admin-articles-modal.es6.min.js1 lines, 1,052 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
f132ff24285a4b78417f203980dff310
sha1
1cd421e0b94d192009beffbcf9afe9b167035260
sha256
ad4ad5d5b33c01db119b3aac4a24788a005cd9d8b64cc84748bb8e83398331a1
(()=>{"use strict";window.jSelectArticle=((t,e,a,n,i,o)=>{let r="";if(!Joomla.getOptions("xtd-articles"))return!1;const{editor:l}=Joomla.getOptions("xtd-articles");""!==o&&(r=`hreflang="${o}"`);const d=`<a ${r} href="${i}">${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 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.