CoreFiles by mySites.guru
admin-contacts-modal.min.js4 lines, 1,223 bytes, from Joomla_5.0.3-Stable-Full_Package.zip
Raw History Compare with 5.0.2
md5
87129b9bc2888eaf0d0035af6a85c066
sha1
e556e46f227cfda5dd8d4505ce9619d94fe10295
sha256
69a5ed6322fae2aedb704dab3c8122dede34a1d3eb270eb07af9fd9e243309f5
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */window.jSelectContact=(o,e,l,t,a,r)=>{let n="";if(!Joomla.getOptions("xtd-contacts"))return window.parent.Joomla.Modal.getCurrent().close(),!1;const{editor:i}=Joomla.getOptions("xtd-contacts");r!==""&&(n=`hreflang = "${r}"`);const d=`<a ${n}  href="${a}">${e}</a>`;return window.parent.Joomla.editors.instances[i].replaceSelection(d),window.parent.Joomla.Modal.getCurrent().close(),!0},document.addEventListener("DOMContentLoaded",()=>{const o=document.querySelectorAll(".select-link");for(let e=0,l=o.length;l>e;e+=1)o[e].addEventListener("click",t=>{t.preventDefault();const a=t.target.getAttribute("data-function");a==="jSelectContact"?window[a](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),null,null,t.target.getAttribute("data-uri"),t.target.getAttribute("data-language"),null):window.parent[a](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),null,null,t.target.getAttribute("data-uri"),t.target.getAttribute("data-language"),null),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()})});

The same content is in 36 releases, Joomla 4.4.1-rc1 to 5.0.3. See them all, or every version of this file.