CoreFiles by mySites.guru
admin-contacts-modal.min.js1 lines, 1,142 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
0c609feb35d3f3d19376a2dd234b7a7b
sha1
09f7efa722fb5a2a612b2292690e64793d288f95
sha256
2a12b1299256dcaa3a1ae747a9324564650e392119bde70b8fe508ceaa217c6c
(function(){'use strict';window.jSelectContact=function(a,b,c,d,e,f){var g="";if(!Joomla.getOptions("xtd-contacts"))return window.parent.Joomla.Modal.getCurrent().close(),!1;var h=Joomla.getOptions("xtd-contacts"),i=h.editor;""!==f&&(g="hreflang = \"".concat(f,"\""));var j="<a ".concat(g,"  href=\"").concat(e,"\">").concat(b,"</a>");return window.parent.Joomla.editors.instances[i].replaceSelection(j),window.parent.Joomla.Modal.getCurrent().close(),!0},document.addEventListener("DOMContentLoaded",function(){for(var a=document.querySelectorAll(".select-link"),b=0,c=a.length;c>b;b+=1)a[b].addEventListener("click",function(a){a.preventDefault();var b=a.target.getAttribute("data-function");"jSelectContact"===b?window[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[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()})})})();

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