CoreFiles by mySites.guru
admin-items-modal.min.js4 lines, 1,433 bytes, from Joomla_4.4.2-Stable-Full_Package.zip
Raw History Compare with 4.4.1
md5
6308ad6c237b0f157a0df66752f6dbc4
sha1
1fa7cd52c557462a176a2417a3c4959e9263124b
sha256
8e851ab6ca388405a6b605eaaf58b4036f9b303fee08c2490bd4996d5cf323f1
/**
 * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */((n,r)=>{window.jSelectMenuItem=(l,t,e,c,g,o)=>{let i="";if(!n.getOptions("xtd-menus"))throw window.parent.Joomla.Modal.getCurrent().close(),new Error("core.js was not properly initialised");const a=n.getOptions("xtd-menus").editor;o!==""&&(i="&lang=");const d=`<a href="${e+i+o}">${t}</a>`;window.parent.Joomla.editors.instances[a].getSelection()?window.parent.Joomla.editors.instances[a].replaceSelection(`<a href="${e+i+o}">${window.parent.Joomla.editors.instances[a].getSelection()}</a>`):window.parent.Joomla.editors.instances[a].replaceSelection(d),window.parent.Joomla&&window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()},[].slice.call(r.querySelectorAll(".select-link")).forEach(l=>{l.addEventListener("click",t=>{t.preventDefault();const e=t.target.getAttribute("data-function");e==="jSelectMenuItem"?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 28 releases, Joomla 4.4.1-rc1 to 4.4.14. See them all, or every version of this file.