CoreFiles by mySites.guru
admin-contacts-modal.min.js4 lines, 1,439 bytes, from Joomla_5.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta3
md5
f1b4f8c78a44652a8d40090ef7312ef9
sha1
883d7765cbdd3d6606d5e92f1eeb1fd8f9c3d497
sha256
ec0ae062eb7f3160d1b2f0f558fdaaeb472073b4589644d67ae66df79257921f
/**
 * @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=(o,a,n,t,e,r)=>{console.warn("Method jSelectContact() is deprecated. Use postMessage() instead.");let l="";if(!Joomla.getOptions("xtd-contacts"))return!1;const{editor:i}=Joomla.getOptions("xtd-contacts");r!==""&&(l=`hreflang = "${r}"`);const d=`<a ${l}  href="${e}">${a}</a>`;return window.parent.Joomla.editors.instances[i].replaceSelection(d),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent()&&window.parent.Joomla.Modal.getCurrent().close(),!0},document.addEventListener("DOMContentLoaded",()=>{const o=document.querySelectorAll(".select-link");for(let a=0,n=o.length;n>a;a+=1)o[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 5 releases, Joomla 5.1.0-alpha1 to 5.1.0-beta1. See them all, or every version of this file.