CoreFiles by mySites.guru
admin-contacts-modal.min.js4 lines, 1,410 bytes, from Joomla_6.1.4-Stable-Full_Package.zip
Raw History Compare with 6.1.3
md5
1400c3365abc5988812bd348a71341a5
sha1
146ddefa552759f9133b9f565cf8f9b4299f9742
sha256
6f10dbd639c8932ec7f35e784e3c10b16da1aba0ac12f94c8394cb85cc8b7f9f
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */window.parent.JoomlaExpectingPostMessage||(window.jSelectContact=(a,t,e,d,r,o)=>{console.warn("Method jSelectContact() is deprecated. Use postMessage() instead.");let n="";if(!Joomla.getOptions("xtd-contacts"))return!1;const{editor:i}=Joomla.getOptions("xtd-contacts");o!==""&&(n=`hreflang = "${o}"`);const l=`<a ${n}  href="${r}">${t}</a>`;return window.parent.Joomla.editors.instances[i].replaceSelection(l),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent()&&window.parent.Joomla.Modal.getCurrent().close(),!0},document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".select-link").forEach(a=>{a.addEventListener("click",t=>{t.preventDefault();const e=t.target.getAttribute("data-function");e==="jSelectContact"&&window[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]&&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()&&window.parent.Joomla.Modal.getCurrent().close()})})}));

The same content is in 135 releases, Joomla 5.1.0-beta2 to 6.3.0-alpha1. See them all, or every version of this file.