CoreFiles by mySites.guru
admin-articles-modal.min.js1 lines, 1,156 bytes, from Joomla_5.0.0-Stable-Full_Package.zip
Raw History Compare with 4.4.14
md5
599baea7b6a621bfe75a2dc8c534e7e1
sha1
2f35ccaed5250d5112744b0d2d264d30f5eceeb3
sha256
baa83f96d3dbbed34d7158bb0d35887b688f4842d75d86f8df4aad54e9e90bfb
window.parent.JoomlaExpectingPostMessage||(window.jSelectArticle=(t,e,a,o,i,n)=>{if(console.warn("Method jSelectArticle() is deprecated. Use postMessage() instead."),!Joomla.getOptions("xtd-articles"))return;const{editor:r}=Joomla.getOptions("xtd-articles"),d=`<a href="${i}"${""!==n?` hreflang="${n}"`:""}>${e}</a>`;window.parent.Joomla.editors.instances[r].replaceSelection(d),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent()&&window.parent.Joomla.Modal.getCurrent().close()},document.querySelectorAll(".select-link").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const{target:e}=t,a=e.getAttribute("data-function");"jSelectArticle"===a&&window[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]&&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()&&window.parent.Joomla.Modal.getCurrent().close()}))})));

The same content is in 6 releases, Joomla 5.0.0-beta1 to 5.0.0. See them all, or every version of this file.