CoreFiles by mySites.guru
admin-items-modal.es6.min.js1 lines, 1,130 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
ecfd5b37aed43f28a9abbc9e6ba154a6
sha1
8cc8bb2d98d43fcf5de61df7abbffe666408c5cf
sha256
01f740ef30c7e61c7c6607705f6074f726d205d5581afa6a169284b7fdd92ccb
((t,e)=>{"use strict";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 u=`<a href="${n+i+l}">${a}</a>`;window.parent.Joomla.editors.instances[d].replaceSelection(u),window.parent.Joomla&&window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}),e.addEventListener("DOMContentLoaded",()=>{[].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 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.