CoreFiles by mySites.guru
admin-items-modal.es6.min.js1 lines, 1,295 bytes, from Joomla_4.0.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta2
md5
7f063e5958500e88672c35e107058ed9
sha1
9ea5d1eddf3631d7020767f9736d0b735798a0ce
sha256
bfabbaf99b10812935623afc762de2357a99b892495d96eb6858848ac5241b73
((a,b)=>{'use strict';window.jSelectMenuItem=(b,c,d,e,f,g)=>{let h="";if(!a.getOptions("xtd-menus"))throw window.parent.Joomla.Modal.getCurrent().close(),new Error("core.js was not properly initialised");const i=a.getOptions("xtd-menus").editor;""!==g&&(h="&lang=");const j=`<a href="${d+h+g}">${c}</a>`;window.parent.Joomla.editors.instances[i].getSelection()?window.parent.Joomla.editors.instances[i].replaceSelection(`<a href="${d+h+g}">${window.parent.Joomla.editors.instances[i].getSelection()}</a>`):window.parent.Joomla.editors.instances[i].replaceSelection(j),window.parent.Joomla&&window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()};const c=[].slice.call(b.querySelectorAll(".select-link"));c.forEach(a=>{a.addEventListener("click",a=>{a.preventDefault();const b=a.target.getAttribute("data-function");"jSelectMenuItem"===b?window[b](a.target.getAttribute("data-id"),a.target.getAttribute("data-title"),a.target.getAttribute("data-uri"),null,null,a.target.getAttribute("data-language")):window.parent[b](a.target.getAttribute("data-id"),a.target.getAttribute("data-title"),null,null,a.target.getAttribute("data-uri"),a.target.getAttribute("data-language"),null),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()})})})(Joomla,document);

The same content is in 7 releases, Joomla 4.0.0-beta to 4.0.0-beta7. See them all, or every version of this file.