CoreFiles by mySites.guru
admin-items-modal.min.js1 lines, 1,406 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
fdb73bd7fc616d5d2a4fa2d53b2d3579
sha1
b7745a4b2d0c9c884f458c621356b4a70fe8fd7e
sha256
f4b51f5a073d98b80d4fa88a5b6a44dd6ad46ed07252631692f8119ba69f305f
(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()},b.addEventListener("DOMContentLoaded",function(){var a=[].slice.call(b.querySelectorAll(".select-link"));a.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 3 releases, Joomla 4.0.0-alpha9 to 4.0.0-alpha11. See them all, or every version of this file.