CoreFiles by mySites.guru
admin-articles-modal.es6.min.js1 lines, 1,090 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
c5e6aab73dfd0df8521f4ee21bd2f409
sha1
e098f708fa28c6d2ac24b8d1a984fa3ebd20703f
sha256
ce729fa03c6949e91382c7a4932d60e8b6862faeebc1c90efc9f1b9f11a0fecd
(()=>{'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=\"".concat(f,"\""));const i="<a ".concat(g," href=\"").concat(e,"\">").concat(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 5 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha12. See them all, or every version of this file.