CoreFiles by mySites.guru
admin-items-modal.min.js1 lines, 1,355 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
680dc10dca6b51377093b041def8b056
sha1
46f306a356d4c7978ad614e2d07cf082a4f23a08
sha256
7e905af5ef232821ee0f5bb6a457e0bae33bafc8c4b9dc23e35513f989711841
(function(a,b){'use strict';window.jSelectMenuItem=function(b,c,d,e,f,g){var h="";if(!a.getOptions("xtd-menus"))throw window.parent.Joomla.Modal.getCurrent().close(),new Error("core.js was not properly initialised");var i=a.getOptions("xtd-menus").editor;""!==g&&(h="&lang=");var j="<a href=\"".concat(d+h+g,"\">").concat(c,"</a>");window.parent.Joomla.editors.instances[i].getSelection()?window.parent.Joomla.editors.instances[i].replaceSelection("<a href=\"".concat(d+h+g,"\">").concat(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()};var c=[].slice.call(b.querySelectorAll(".select-link"));c.forEach(function(a){a.addEventListener("click",function(a){a.preventDefault();var 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 8 releases, Joomla 4.0.0-alpha12 to 4.0.0-beta7. See them all, or every version of this file.