CoreFiles by mySites.guru
admin-articles-modal.min.js4 lines, 1,142 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
616c13f1a349fd6c377312c5fb28ecd3
sha1
b2963282f16491201c5ff67d416ef73f08a513fb
sha256
30d39173932cfbc35a0cd269e0a52aa9c82cca93f187c1b61b5b4f061692fd8e
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */window.jSelectArticle=(o,e,t,a,l,i)=>{Joomla.getOptions("xtd-articles")||window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close();const{editor:n}=Joomla.getOptions("xtd-articles"),r=`<a href="${l}"${i!==""?` hreflang="${i}"`:""}>${e}</a>`;window.parent.Joomla.editors.instances[n].replaceSelection(r),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()},document.querySelectorAll(".select-link").forEach(o=>{o.addEventListener("click",e=>{e.preventDefault();const{target:t}=e,a=t.getAttribute("data-function");a==="jSelectArticle"?window[a](t.getAttribute("data-id"),t.getAttribute("data-title"),t.getAttribute("data-cat-id"),null,t.getAttribute("data-uri"),t.getAttribute("data-language")):window.parent[a](t.getAttribute("data-id"),t.getAttribute("data-title"),t.getAttribute("data-cat-id"),null,t.getAttribute("data-uri"),t.getAttribute("data-language")),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()})});

The same content is in 28 releases, Joomla 4.4.1-rc1 to 4.4.14. See them all, or every version of this file.