CoreFiles by mySites.guru
admin-articles-modal.es6.min.js1 lines, 1,050 bytes, from Joomla_4.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta
md5
4f4ac6f27230c1069c36699bd7358a0e
sha1
e4406301ccbcf4b80f01f6d41d800587c461d189
sha256
d96329897c063a86a0bdef856962384b88b78ee1f3865313499c976431640786
(()=>{'use strict';window.jSelectArticle=(a,b,c,d,e,f)=>{let g="";if(!Joomla.getOptions("xtd-articles"))return!1;const{editor:h}=Joomla.getOptions("xtd-articles");""!==f&&(g=`hreflang="${f}"`);const i=`<a ${g} href="${e}">${b}</a>`;return window.parent.Joomla.editors.instances[h].replaceSelection(i),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close(),!0},document.addEventListener("DOMContentLoaded",()=>{const a=document.querySelectorAll(".select-link");for(let b=0,c=a.length;c>b;b+=1)a[b].addEventListener("click",a=>{a.preventDefault();const{target:b}=a,c=b.getAttribute("data-function");"jSelectArticle"===c?window[c](b.getAttribute("data-id"),b.getAttribute("data-title"),b.getAttribute("data-cat-id"),null,b.getAttribute("data-uri"),b.getAttribute("data-language")):window.parent[c](b.getAttribute("data-id"),b.getAttribute("data-title"),b.getAttribute("data-cat-id"),null,b.getAttribute("data-uri"),b.getAttribute("data-language")),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()})})})();

The same content is in 7 releases, Joomla 4.0.0-beta to 4.0.0-beta7. See them all, or every version of this file.