Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla5/media/com_contact/js/ |
| [Home] [System Details] [Kill Me] |
/**
* @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()})})}));