CoreFiles by mySites.guru
admin-items-modal.min.js1 lines, 1,276 bytes, from Joomla_4.2.7-Stable-Full_Package.zip
Raw History Compare with 4.2.6
md5
f5e24d3e28bf4264d602538edb180071
sha1
9fd9966464a66118f626e9e3ae70fa2408d12238
sha256
95d6e52cc8d010048be5874312ff6c53f3e276dd6483c53298ece9ba68a926c2
((t,e)=>{window.jSelectMenuItem=(e,a,n,o,r,l)=>{let i="";if(!t.getOptions("xtd-menus"))throw window.parent.Joomla.Modal.getCurrent().close(),new Error("core.js was not properly initialised");const d=t.getOptions("xtd-menus").editor;""!==l&&(i="&lang=");const g=`<a href="${n+i+l}">${a}</a>`;window.parent.Joomla.editors.instances[d].getSelection()?window.parent.Joomla.editors.instances[d].replaceSelection(`<a href="${n+i+l}">${window.parent.Joomla.editors.instances[d].getSelection()}</a>`):window.parent.Joomla.editors.instances[d].replaceSelection(g),window.parent.Joomla&&window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()};[].slice.call(e.querySelectorAll(".select-link")).forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const e=t.target.getAttribute("data-function");"jSelectMenuItem"===e?window[e](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),t.target.getAttribute("data-uri"),null,null,t.target.getAttribute("data-language")):window.parent[e](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),null,null,t.target.getAttribute("data-uri"),t.target.getAttribute("data-language"),null),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))}))})(Joomla,document);

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