CoreFiles by mySites.guru
admin-items-modal.min.js1 lines, 1,184 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
22ccb90db4862839c09f1160e8671835
sha1
54d5767062dcc48f437c6a6221d52008d7d8d481
sha256
3c8c35e4554221f580e5ef0f4f25c5a411d896134536a8ab49dedb750d831ba3
(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].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 2 releases, Joomla 4.0.0-alpha6 to 4.0.0-alpha7. See them all, or every version of this file.