CoreFiles by mySites.guru
admin-items-modal.min.js4 lines, 1,508 bytes, from Joomla_5.0.2-Stable-Full_Package.zip
Raw History Compare with 5.0.1
md5
181a4883606f39f1cc97aa0e97b12198
sha1
24538ba8cd18f072bf89c543fe173312c645693c
sha256
6bb285d8737028f0215437cf7b3043ee21e68892230bdfbc1833be12d2a5874d
/**
 * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */((i,r)=>{window.jSelectMenuItem=(l,t,e,c,g,o)=>{console.warn("Method jSelectMenuItem() is deprecated. Use postMessage() instead.");let n="";if(!i.getOptions("xtd-menus"))return;const a=i.getOptions("xtd-menus").editor;o!==""&&(n="&lang=");const d=`<a href="${e+n+o}">${t}</a>`;window.parent.Joomla.editors.instances[a].getSelection()?window.parent.Joomla.editors.instances[a].replaceSelection(`<a href="${e+n+o}">${window.parent.Joomla.editors.instances[a].getSelection()}</a>`):window.parent.Joomla.editors.instances[a].replaceSelection(d),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent()&&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]?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]&&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()&&window.parent.Joomla.Modal.getCurrent().close()})})})(Joomla,document);

The same content is in 13 releases, Joomla 5.0.1-rc1 to 5.1.0-beta1. See them all, or every version of this file.