CoreFiles by mySites.guru
admin-contacts-modal.es6.min.js1 lines, 1,087 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
953175a3c99c5e77cb477d4374438656
sha1
a61b477dfb2ab063c3d6ad906b4aa2b57b8baa54
sha256
55172df714deb68a107d2525afd5e3d45a836cc41ebf58f18f44274085fa08cc
(()=>{"use strict";window.jSelectContact=((t,e,a,n,o,r)=>{let l="";if(!Joomla.getOptions("xtd-contacts"))return window.parent.Joomla.Modal.getCurrent().close(),!1;const{editor:i}=Joomla.getOptions("xtd-contacts");""!==r&&(l=`hreflang = "${r}"`);const d=`<a ${l}  href="${o}">${e}</a>`;return window.parent.Joomla.editors.instances[i].replaceSelection(d),window.parent.Joomla.Modal.getCurrent().close(),!0}),document.addEventListener("DOMContentLoaded",()=>{const t=document.querySelectorAll(".select-link");for(let e=0,a=t.length;a>e;e+=1)t[e].addEventListener("click",t=>{t.preventDefault();const e=t.target.getAttribute("data-function");"jSelectContact"===e?window[e](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[e](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 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.