CoreFiles by mySites.guru
admin-contacts-modal.es6.min.js1 lines, 1,085 bytes, from Joomla_4.0.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta2
md5
743a7d5cd37f7207a2bb5d0c63d1336d
sha1
1cbd3a4497b31b72a62b5c63b6777efa76236828
sha256
0157386314dcfbf351ab899222fe28fb3c4838455a65ccac87ebc51793243a47
(()=>{'use strict';window.jSelectContact=(a,b,c,d,e,f)=>{let g="";if(!Joomla.getOptions("xtd-contacts"))return window.parent.Joomla.Modal.getCurrent().close(),!1;const{editor:h}=Joomla.getOptions("xtd-contacts");""!==f&&(g=`hreflang = "${f}"`);const i=`<a ${g}  href="${e}">${b}</a>`;return window.parent.Joomla.editors.instances[h].replaceSelection(i),window.parent.Joomla.Modal.getCurrent().close(),!0},document.addEventListener("DOMContentLoaded",()=>{const a=document.querySelectorAll(".select-link");for(let b=0,c=a.length;c>b;b+=1)a[b].addEventListener("click",a=>{a.preventDefault();const 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 7 releases, Joomla 4.0.0-beta to 4.0.0-beta7. See them all, or every version of this file.